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

Module not found: Error: Can't resolve '@vercel/webpack-asset-relocator-loader' #180

Open
RichardFoss opened this issue Apr 28, 2023 · 2 comments

Comments

@RichardFoss
Copy link

I'm starting out with electron-forge, and am using the webpack plugin. When I request a maker (dmg) to package and make, I get the following error type whenever there is a 'require' statement in my code:
Module not found: Error: Can't resolve '@vercel/webpack-asset-relocator-loader' in 'pathname'
ERROR in ./main.js 206:17-38
Would appreciate help to resolve this.

@RichardFoss
Copy link
Author

Ah, just checked the webpack template code, and I see the loader there in the devdependencies. Need to add it I assume - was not mentioned in the documentation.

@RichardFoss
Copy link
Author

My apologies - now see that the loader is indicated in the 'Native Node Modules' section!

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

1 participant