Pierce01 / MinecraftLauncher-core

Lightweight module that downloads and runs Minecraft using javascript / NodeJS
MIT License
356 stars 81 forks source link

Error with Electron #121

Closed anreszii closed 8 months ago

anreszii commented 8 months ago

ERROR in ./node_modules/verror/node_modules/extsprintf/lib/extsprintf.js 6:15-30 Module not found: Error: Can't resolve 'util' in '/Users/reszi./Documents/GitHub/electron-with-create-react-app/node_modules/verror/node_modules/extsprintf/lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to:

webpack compiled with 94 errors and 1 warning

94 errors like this, nothing helps: creating resolve.fallback, etc. Has anyone encountered a similar error and can help?

Bricklou commented 8 months ago

This error doesn't come from the library but from your own projects. You're using deprecated tools and potentially misusing the library itself.