varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.53k stars 68 forks source link

Webpack error #523

Closed N7ghtm4r3 closed 5 months ago

N7ghtm4r3 commented 5 months ago

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 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?