I’m running Self Hosted in Docker and after installing the latest update the page can’t be accessed from the browser. i beleive there is an issue with the react.
the errors i recaive in my browser:
1- Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.
I see there are several similar threads on the forum about the web app is not shown in a browser.
And it looks like this one is the newest one. So, I’ll add my 2 cent to the topic.
The app works in the desktop app. But it doesn’t appear in a web browser.
With
UPDATE accounts SET set_react_as_default_ap = 1;
the browser console shows the following errors:
07:31:32.699 bundle.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
07:31:32.929 favicon.ico:1 GET https://invoiceninja.domain.com/favicon.ico 403 (Forbidden)
07:31:33.261 manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
And with
UPDATE accounts SET set_react_as_default_ap = 0;
the browser console shows the following errors:
07:33:48.293 invoiceninja.domain.com/:10 GET https://invoiceninja.domain.com/js/pdf.min.js net::ERR_ABORTED 404 (Not Found)
07:33:48.294 (index):12 Uncaught ReferenceError: pdfjsLib is not defined at (index):12:5
(anonymous) @ (index):12
07:33:48.299 invoiceninja.domain.com/:154 GET https://invoiceninja.domain.com/main.foss.dart.js?v=5.10.4 net::ERR_ABORTED 404 (Not Found)
07:33:48.509 favicon.ico:1 GET https://invoiceninja.domain.com/favicon.ico 403 (Forbidden)
07:33:48.548 A bad HTTP response code (404) was received when fetching the script.
07:33:48.549 invoiceninja.domain.com/:1 Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://invoiceninja.domain.com/') with script ('https://invoiceninja.domain.com/flutter_service_worker.js?v=5.10.4'): A bad HTTP response code (404) was received when fetching the script.
07:33:48.786 /manifest.json?v=5.10.4:1 GET https://invoiceninja.domain.com/manifest.json?v=5.10.4 404 (Not Found)
07:33:48.787 /manifest.json?v=5.10.4:1 Manifest: Line: 1, column: 1, Syntax error.
So, both (Flutter and React) web apps don’t work properly in the version 5.10.4.
As I understand, there are successful and less successful docker container builds. The issue can be fixed in next versions.
Is there any chance that I can somehow fix it in the current version (5.10.4)?
Thank you for the prompt reply, @hillel
Will the fix be added to the next docker container release?
And probably, you can give a clue when is going to be?
I’m experiencing this same issue, with version v5.13.18-C183
I’d love to keep using the React UI, specially considering I can’t download the linux desktop client as snapcraft errors out with 503 service unavailable when trying to get it.
The React app is the new web app, the Flutter web app is the old one. If you’re seeing a problem with the React web app feel free to create an issue here:
If you haven’t already I suggest trying the Flatpak app, it’s another option for Linux.