vercel/webpack-asset-relocator-loader

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

RichardFoss opened this issue · 2 comments

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.

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.

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