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

Cannot import/require electron in renderer.js #2318

Closed
venky2604 opened this issue Jun 9, 2021 · 3 comments
Closed

Cannot import/require electron in renderer.js #2318

venky2604 opened this issue Jun 9, 2021 · 3 comments

Comments

@venky2604
Copy link

An unhandled rejection has occurred inside Forge:
TypeError: Cannot set property 'native_modules/dist/Electron.app/Contents/Frameworks/Mantle.framework/Mantle' of undefined

@malept
Copy link
Member

malept commented Jun 9, 2021

Please follow the issue template for a bug so there's a reliable set of steps to reproduce. Failure to do so will result in this issue being closed.

@Mac-Genius
Copy link

@malept This appears to be the MacOS version of the issue I was having earlier. It's a duplicate of #2293. I was playing around with beta 57 on my Mac laptop and ran into the same issue:

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

Electron Forge was terminated. Location:
{}

@malept
Copy link
Member

malept commented Jun 11, 2021

Duplicate of #2293

@malept malept closed this as completed Jun 11, 2021
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

3 participants