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

Electron forge v6.0.0-beta.57 throws errors #408

Closed
will-stone opened this issue Jun 10, 2021 · 1 comment
Closed

Electron forge v6.0.0-beta.57 throws errors #408

will-stone opened this issue Jun 10, 2021 · 1 comment
Labels

Comments

@will-stone
Copy link
Owner

⠋ Compiling Renderer Code
An unhandled rejection has occurred inside Forge:
TypeError: Cannot set property 'native_modules/dist/Electron.app/Contents/Frameworks/Mantle.framework/Mantle' of undefined
    at .../browserosaurus/node_modules/@marshallofsound/webpack-asset-relocator-loader/dist/index.js:14689:98
    at async Promise.all (index 98)
    at .../browserosaurus/node_modules/@marshallofsound/webpack-asset-relocator-loader/dist/index.js:14675:7

Electron Forge was terminated. Location:
{}

browserosaurus on  master [$!] is 📦 v14.4.0 via  v16.3.0 took 8s 
❯ (node:16395) electron: Failed to load URL: http://localhost:3000/main_window with error: ERR_EMPTY_RESPONSE
(Use `Electron --trace-warnings ...` to show where the warning was created)
(node:16395) UnhandledPromiseRejectionWarning: Error: ERR_EMPTY_RESPONSE (-324) loading 'http://localhost:3000/main_window'
    at rejectAndCleanup (electron/js2c/browser_init.js:213:985)
    at Object.failListener (electron/js2c/browser_init.js:213:1198)
    at Object.emit (events.js:315:20)
(node:16395) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:16395) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

As this was the only change from 56 to 57, I believe the solution lies somewhere within this issue: electron/forge#2293

@will-stone
Copy link
Owner Author

It seems like B doesn't use native modules, so simply removed the code and was able to upgrade to beta 58

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

No branches or pull requests

1 participant