Runtime errors on building and launching Browser app
See original GitHub issueI am trying to run the Actual app locally as suggested here, but the initial page takes forever to load with few errors in the Console. Few other users also reported the same issue on Discord, hence posting it here. Any suggestions to get past this issue is greatly appreciated!
browser-server.js:31 Refused to execute script from 'http://localhost:3001/kcab/kcab.worker.dev.js' because its MIME type ('text/html') is not executable. (anonymous) @ browser-server.js:31 browser-server.js:31 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:3001/kcab/kcab.worker.dev.js' failed to load. at http://localhost:3001/static/js/bundle.worker.js:8169:7
My development environment is Debian 10 and using Node v16.15.0
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top GitHub Comments
I was having the same issue and after some tracing back I found some additional errors, referring to an issue in build-browser with
[ is not defined
What fixed it for me was editing build-browser in
/packages/loot-core/bin/build-browser
It seems the
==
comparison isn’t a globally accepted comparator in shell scripts. See info hereBy replacing the
==
with a single=
I was able to run without that issue.E.g Line 10
if [ $NODE_ENV == 'development' ]; then
becameif [ $NODE_ENV = 'development' ]; then
@sb18281 Thank you very much. That fixed the issue. Closing this now.