Facing issue in Production Build
See original GitHub issueOS: Linux App File Type: AppImage
Works perfectly in development, but after building the app it’s throwing the following error. 🤔 how it works in development
FinalizationRegistry
is not imported in server.js
A JavaScript error occurred in the main process
Uncaught Exception:
ReferenceError: FinalizationRegistry is not defined
at Object.<anonymous> (/tmp/.mount_FirecaTEOaeb/resources/app.asar/node_modules/@electron/remote/dist/src/main/server.js:20:30)
at Module._compile (internal/modules/cjs/loader.js:967:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/tmp/.mount_FirecaTEOaeb/resources/app.asar/node_modules/@electron/remote/dist/src/main/index.js:4:16)
at Module._compile (internal/modules/cjs/loader.js:967:30)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Top 10 Reasons Your Production Build Could Fail - MacroFab
The first most common production build problem is that manufacturing documentation can be either poorly written or missing entirely. Assembly instructions need ...
Read more >5 Tips On How to Deal With Common Problems ... - Medium
5 Tips On How to Deal With Common Problems When Running Large Production Environments ... It's hard to build, test, and deploy software...
Read more >The Top Seven Problems in Project Manufacturing and How to ...
The seven most common problems we see in project manufacturing are: ... A lack of production “flow”: Project-based manufacturers often believe that they ......
Read more >Facing issue while building next app using npm run build
I am trying to build project and triigered npm run build command for generating production app build but seems like thier is issue...
Read more >The Top 5 Manufacturing Challenges & Potential Solutions
Some examples include bottlenecks in food production, electrical equipment, and construction supplies. The lumber shortage and demands for steel ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know this issue is closed, but if you find yourself running into this on latest versions, update your node environment. I ran into this on electron 16 and
@electron/remote
v2.0.1. Updating to node 16 fixed it for me.@nornagon @Nokel81 issue was fixed in the latest version: 1.2.1