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.

"Firefox can’t find the file at moz-extension://......" when running the built blank BEX, but not with quasar dev -m bex

See original GitHub issue

These are the commands I ran (I didn’t change the code in any way):

mkdir folder
cd folder
quasar create
quasar mode add bex
quasar build -m bex
cd ./dist/bex/UnPackaged && web-ext sign --api-key ... --api-secret ...

(I checked that I had the latest versions with npm outdated) I then drag&dropped that signed xpi file (in the folder ./web-ext-artifacts/) into the latest Firefox ESR in Debian 10 stable (78.12.0esr) and installed the addon (with no other addons being installed/running in that Firefox profile). When I click onto the Quasar icon in the upper right of Firefox after it finished installing it shows this page:

File not found Firefox can’t find the file at moz-extension://extension-id/www/index.html.

instead of the proper (Vue/Quasar) page. This seems to be a critical bug.

Can somebody please at least confirm that this also occurs on their setup or add info with which versions these commands result in a bex running properly in Firefox?

I didn’t get an answer in the discussion and on Discord so far:

Discussed in https://github.com/quasarframework/quasar/discussions/10001

<div type='discussions-op-text'>

Originally posted by mYnDstrEAm July 7, 2021 I installed the unsigned built addon in Firefox and I’m getting “Firefox can’t find the file at moz-extension://…” when clicking on the addon (the quasar icon in the upper right of the browser) to open the addon page. However, the page opens just fine with the temporary addon.

Seems like there’s a problem with some file-paths, mainly www/ ones (one can make it least show a blank page instead of an error page by changing the paths by removing the www/ which only work as is in dev mode).

Currently it at least does not find vendor.js and app.js as it looks for them in /js/ instead of /www/js. (In the console there is this message: Loading failed for the <script> with source “moz-extension://u-i-d/js/app.js”.)


Now I created a blank new BEX, it works with quasar dev -m bex but dragging the built packaged Firefox .zip file into about:debugging and opening the addon page causes that same can’t find the file error (and unlike the upgraded version in additional I couldn’t install it because of it being corrupt so only loaded it as temporary addon).

With the project that I upgraded to Quasar 2 I get this can’t find the file error, with the blank new project with the below commands I get “The add-on downloaded from this site could not be installed because it appears to be corrupt”. I previously changed “xpinstall.signatures.required” to “false” in about:config to be able to install the unsigned addon (or does it need to be signed?). I did nothing but running these commands:

quasar create
npm i
quasar mode add bex
quasar dev -m bex
quasar build -m bex

Just like described here: https://quasar.dev/quasar-cli/developing-browser-extensions/build-commands (with the latest Quasar, the latest Node 12, latest npm and latest Firefox ESR 78.11 in Debian10). And it does not work in Firefox (due to problems with paths as far as I can tell).

What am I missing here? Any help is greatly appreciated (for example info whether the above works for you with the versions you’re using).

This may be a well-known problem or a very easy to solve, obvious fault.

I asked about this on Discord but didn’t receive any answer so far and it may also be useful to others – this is why I’m asking it here now.

I tried after signing the addon but it still displays File not found Firefox can’t find the file at moz-extension://extension-id/www/index.html. even with the blank bex (I only ran those commands above). Any help?</div>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mYnDstrEAmcommented, Jul 31, 2021

Asked about it here. Would be nice if somebody could at least confirm this to also occur on their setup or report that building/running built BEX still does work on their system.

0reactions
rstoenescucommented, Oct 26, 2021

Fix will be available in q/app v3.1.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve error "Firefox can't find the file at moz-extension ...
How to solve error "Firefox can't find the file at moz-extension://......" when running a built blank Quasar BEX ("quasar dev -m bex" works)....
Read more >
BEX Build Commands - Quasar Framework
This will present you with the file selection dialog. Navigate to and select your src-bex/manifest. json file. Note: Firefox requires the manifest file,...
Read more >
Extension is not working | Firefox Support Forum
So i'm open extension directly but still no hope stylus ... so i'm checking tumbex also, it have error " Uncaught [Exception... "File...
Read more >
Untitled
Podyumunda, Will and grace not on netflix, Thundermans season 3, Sea glass paint sherwin williams, Bob 95 t-shirts, Yulee high school football 2015, ......
Read more >
mn 0 01 05_1 1 10 100 10th 11 11_d0003 12 13 14 141a
... Deutsch Devang Development Devens Devereaux Devincent Devine Devlin Devoe ... bewitching bewitchment bewray bex bey beykpour beyond bez bezant bezel ...
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