I am trying to run a `js` app using `jsBrowserRun`...
# compose-web
a
I am trying to run a
js
app using
jsBrowserRun
but it doesnt seem to be generating the app, neither in
composeApp/build/processedResources
(i see a generated js/main/skiko.js but no composeApp.js) nor in
dist
). This causes some errors on the js console on the browser. when I run
jsBrowserDistribution
the app is generated and i can run it. any idea how to debug this? Only error i am getting when running is:
Copy code
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 }
👍 1
For anyone else having issues adapting the kmp wizard to run js instead of wasm, you need to move the
<script src="composeApp.js"/>
after the
<canvas id="ComposeTarget"></canvas>
Spent an hour trying to figure out why I could not run js anymore
c
I’m seeing the same
BREAKING CHANGE
error message, and it seems spurious.