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

Polyfills error with webpack > 5 #23

Open
rossicler-hostalky opened this issue Mar 14, 2023 · 0 comments
Open

Polyfills error with webpack > 5 #23

rossicler-hostalky opened this issue Mar 14, 2023 · 0 comments

Comments

@rossicler-hostalky
Copy link

rossicler-hostalky commented Mar 14, 2023

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.

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