Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-ext thinks I am running 32 bit architecture when it is 64 bit #3341

Open
grandeljay opened this issue Jan 29, 2025 · 3 comments
Open

web-ext thinks I am running 32 bit architecture when it is 64 bit #3341

grandeljay opened this issue Jan 29, 2025 · 3 comments

Comments

@grandeljay
Copy link

grandeljay commented Jan 29, 2025

I am trying to get a project running via web-ext but get this following error:

$ yarn run manifest:firefox && node_modules/.bin/web-ext run --source-dir dist/extension/
yarn run v1.22.19
$ ts-node scripts/applyManifestOverrides.ts --type=firefox
firefox manifest applied.
Done in 0.23s.
Running web extension from C:\laragon\www\toolkit-for-ynab\toolkit-for-ynab\dist\extension
You are using 32-bit version of Firefox on 64-bit versions of the Windows.
Some features may not work correctly in this version. You should upgrade Firefox to the latest 64-bit version now!
node:events:485
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\Program Files (x86)\Mozilla Firefox\firefox.exe ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe',
  path: 'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe',
  spawnargs: [
    '-start-debugger-server',
    50713,
    '-foreground',
    '-no-remote',
    '-profile',
    'C:\\Users\\micro\\AppData\\Local\\Temp\\firefox-profileoJ89Gr/'
  ]
}

Node.js v23.6.1

You are using 32-bit version of Firefox on 64-bit versions of the Windows.
Some features may not work correctly in this version. You should upgrade Firefox to the latest 64-bit version now!

I typed navigator.userAgent into the developers console and got:

"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0" 

It seems one of these outputs are wrong.

Do you have any insights or ideas what could be going wrong here and causing this error?

@Rob--W
Copy link
Member

Rob--W commented Jan 30, 2025

The error message originates from https://github.com/mozilla/node-fx-runner/blob/b31bbca6dbd89f820f3b621c1785e3ddfcc85b1a/lib/utils.js#L79-L86

That code and the preceding code may offer pointers on debugging this issue.

The "arch" is derived from os.arch(). What is the output of node -e 'console.log(require("os").arch())' ?

How did you install Firefox?

@grandeljay
Copy link
Author

grandeljay commented Jan 30, 2025

What is the output of node -e 'console.log(require("os").arch())' ?

$ node -e 'console.log(require("os").arch())'
x64

How did you install Firefox?

I installed it with the ChocolateyGUI but with all default values so I presume the equivelant command I used would be:

choco install librewolf

The error message originates from https://github.com/mozilla/node-fx-runner/blob/b31bbca6dbd89f820f3b621c1785e3ddfcc85b1a/lib/utils.js#L79-L86
That code and the preceding code may offer pointers on debugging this issue.

Sorry I don't work with build or command line tools very much so my knowledge is basic at best. Any chance you could hand feed me some instructions on what I can do to help?

@grandeljay
Copy link
Author

grandeljay commented Jan 30, 2025

Sorry I should mention that I am running LibreWolf but from my understanding the source code is basically the same:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants