electron-typescript-react-tailwind-redux
electron-typescript-react-tailwind-redux copied to clipboard
Polyfills error with webpack > 5
Hi, First of all, thanks for creating this amazing boilerplate.
I tried adding a few libraries to the project, but I'm getting a lot of errors like this:
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:
- add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
- install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "http": false }
this happens for multiple libraries. Do you know which webpack config do I need to change to add these fallbacks? Or if there's any other way to fix this issue?
Edit:
After isolating the problem a little bit, this happens if I install aws-amplify
package and import it in the renderer process.