Closed morwoen closed 3 years ago
@morwoen Can you try to change process/browser
as my commit has done and tell me if that fixes it for you?
@reZach Thanks a lot, works like a charm. I should have checked if you made commits to the template as well 😅 . This is the first time I am using a github template and I should figure out a way to keep up to date with it :)
@morwoen no worries! I'm glad the fix works for you!
In this commit (note the line is in package-lock so you need to expand the file to see the line) https://github.com/reZach/secure-electron-store/commit/844f64ccdc115af8818891c8614baf24966619e1#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519R5249
The @msgpack/msgpack is bumped to 2.5.1 which is the latest version. In that version, it uses .mjs files. Sadly these files are not handled by ProvidePlugin (see https://github.com/webpack/webpack/issues/7032).
The following error is being logged:
Creating an issue instead of contributing a fix as I am not sure what the correct resolution would be. NPM is rightfully thinking there are no breaking changes so it updates to the latest. package-lock can be reverted or package.json can be changed to specific version instead. Or an alternative I cannot think of 😅