My sample <https://github.com/vmware-wasmstack/was...
# webassembly
s
My sample https://github.com/vmware-wasmstack/wasm-languages/tree/main/kotlin/browser-hello-world is broken because Kotlin
1.7.20-dev-1406
is not available anymore. When I update it with Kotlin
1.7.20-Beta
I get the following error:
Copy code
> Task :wasmBrowserProductionWebpack FAILED
Module not found: Error: Can't resolve '.' in '/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/packages/wasm-example-wasm/kotlin'

Module build failed: UnhandledSchemeError: Reading from "node:module" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
    at /home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/webpack/lib/NormalModule.js:832:25
    at Hook.eval [as callAsync] (eval at create (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/tapable/lib/Hook.js:18:14)
    at Object.processResource (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/webpack/lib/NormalModule.js:829:8)
    at processResource (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/loader-runner/lib/LoaderRunner.js:220:11)
    at iteratePitchingLoaders (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/loader-runner/lib/LoaderRunner.js:171:10)
    at runLoaders (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/loader-runner/lib/LoaderRunner.js:398:2)
    at NormalModule._doBuild (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/webpack/lib/NormalModule.js:819:3)
    at NormalModule.build (/home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/webpack/lib/NormalModule.js:963:15)
    at /home/seb/wasm/wasm-languages/kotlin/browser-hello-world/build/js/node_modules/webpack/lib/Compilation.js:1371:12
Any hint to fix that?
It seems
gradle wasmProductionExecutableCompileSync
allow me to skip the error.
@bashor Any feedback on that one, is it a bug you need to fix?
b
Hi! Please file an issue kotl.in/issue
b
JFYI: it’s fixed since
1.8.20-dev-835
, latest available version
1.8.20-dev-835
s
Thanks