https://kotlinlang.org logo
#javascript
Title
# javascript
d

David Smith

01/31/2023, 2:10 PM
has anyone come across this when running an MPP build in docker?
Copy code
Task :jsBrowserTest
  Uncaught ReferenceError: setMetadataFor is not defined
  at /tmp/_karma_webpack_217516/commons.js:705:3
my colleague found a work around for this which implies a bug in the kotlin compiler. If we set
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=false
then the issue does not happen.
👏🏻 1
j

jean

02/17/2023, 1:58 PM
I had the exact same error and
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=false
fixed the issue. Thanks for updating your post with an answer!
4 Views