-
Notifications
You must be signed in to change notification settings - Fork 194
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
Module build failed
with devtool option to have source maps with original source quality
#192
Comments
I assume you're using some sort of |
Hi @pmmmwh, and thank you for the quick answer! Indeed, I am using Any idea on how to avoid the error? |
I assume I will have to get rid of the fetch polyfill... |
The simplest way right now is to use something else (e.g. I could go around and patch the loader with an ugly hack I guess: const originalFetch = global.fetch
delete global.fetch
// ... loader code
global.fetch = originalFetch |
Let you choose then 👍 I confirm, however, that removing the fetch polyfill, does fix the issue. |
I'll patch this in |
Would be great! Thank you again @pmmmwh, both for the answer and of course the plugin itself. |
Same issue for me using |
Released in |
Hi @pmmmwh, |
When using webpack's
devtool
option so as to obtain source maps with original source, like, e.g.,eval-cheap-module-source-map
,eval-source-map
, orcheap-module-source-map
, the build fails with the following error. (For bundled, generated, or transformed code, there is no error and the plugin works as expected.)We use a server-side application with a custom Express HTML server making use of Webpack Dev Middleware and Webpack Hot Middleware, like, e.g., at https://stackoverflow.com/a/41837779.
Plugin configuration is the following:
Versions used:
@pmmmwh/react-refresh-webpack-plugin 0.4.1
webpack 4.44.1
webpack-dev-middleware 3.7.2
webpack-hot-middleware 2.25.0
The text was updated successfully, but these errors were encountered: