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.

Facing issue in Production Build

See original GitHub issue

OS: 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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jahan-addisoncommented, Jan 18, 2022

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.

0reactions
pranavwanicommented, Aug 17, 2021

@nornagon @Nokel81 issue was fixed in the latest version: 1.2.1

Read more comments on GitHub >

github_iconTop 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 >

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