https://kotlinlang.org logo
Title
d

David Smith

01/31/2023, 2:10 PM
has anyone come across this when running an MPP build in docker?
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.
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!