question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime errors on building and launching Browser app

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
sb18281commented, May 4, 2022

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 here

By replacing the == with a single = I was able to run without that issue.

E.g Line 10 if [ $NODE_ENV == 'development' ]; then became if [ $NODE_ENV = 'development' ]; then

0reactions
borasuracommented, May 7, 2022

@sb18281 Thank you very much. That fixed the issue. Closing this now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fix runtime errors in Internet Explorer - Microsoft Support
This article provides the solution to solve the runtime errors that occur in Internet Explorer.
Read more >
Common Runtime Exceptions Solutions | Foo Basic Web Studio
Run-time errors are those that appear only after you compile and run your code. These involve code that may appear to be correct...
Read more >
Flutter App on Android Studio - Failed to launch browser #73976
For the past month or so, the flutter web app I am developing no longer launches on Chrome web from within Android Studio...
Read more >
C++ Runtime Errors: Application requested Runtime to terminate
Getting some errors to do with C++ Runtime ? Well, this is a simple video ... try restarting your device. Your browser can't...
Read more >
Uncaught (in promise): cordova_not_available in Ionic 2
You are accessing native plugins while testing in the browser. In order to make plugins work, you should use a real device to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found