Hi, when I run the kobwebStart command to run the site, without any changes to the previous code, in the IntelliJ console this is printed:
Module not found: Error: Can't resolve 'os' in 'C:\kobweb-0.9.15\bin\desktop\build\js\packages\myProject\kotlin'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "os": false }
Module not found: Error: Can't resolve 'path' in 'C:\kobweb-0.9.15\bin\desktop\build\js\packages\prova\kotlin'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
and in browser after used the Inspect in the Sources section this occurred:
Could not load content for webpack://site/site/build/compileSync/js/main/developmentExecutable/kotlin/js-ir/runtime/unlinked.kt?7d4f (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
There is a config file where add this snippet of code resolve.fallback or any procedure to do?
YOUR BUG DESCRIPTION HERE
If relevant, specify:
Hi, when I run the
kobwebStart
command to run the site, without any changes to the previous code, in the IntelliJ console this is printed:Module not found: Error: Can't resolve 'os' in 'C:\kobweb-0.9.15\bin\desktop\build\js\packages\myProject\kotlin'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
and in
browser
after used theInspect
in theSources
section this occurred:Could not load content for webpack://site/site/build/compileSync/js/main/developmentExecutable/kotlin/js-ir/runtime/unlinked.kt?7d4f (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
There is a config file where add this snippet of code
resolve.fallback
or any procedure to do?