-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
After update to 3.0.0, Webpack build is failing #659
Comments
webpack version 4.18.0 works with 2.0.4 but not with 3.0.0 |
Thank you for reporting. It looks like this webpack setup doesn't seem to respect Note that whatwg-fetch v2 wasn't a module, but v3 is; maybe you can change your webpack configuration to load it like you load other modules? |
On my list to loop back here and figure out a solution. |
This worked for me: new webpack.ProvidePlugin({
fetch: 'exports-loader?self.fetch!whatwg-fetch/dist/fetch.umd',
}) |
@andrejpavlovic can you explain a bit more about your solution? Was it done as a fork to |
Sorry to be persistent here - @belcherj any chance you've got an update or workaround for this that might work with |
Sorry, got pulled onto another project and never ended up having time to figure out the solution. |
Is there someone else who can look at this @belcherj? |
I just fixed it on the that project by using @andrejpavlovic 's solution: Remove: |
Would this also work? The problem with the |
Tested and that works as well! |
@mislav: Trying your modification results in |
@mislav with
but @belcherj's solution works in my case. |
Updating from 2.0.4 to 3.0.0 webpack is failing, see error below. I assume I need to use a different loader but wanted to raise the issue since a quick web search and perusing the issues here did not result in any others having the issue. This method of including fetch via webpack is shared a lot in examples so there will probably be others.
In my webpack config I include fetch globally like this:
The text was updated successfully, but these errors were encountered: