-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Webpack build issue v4.3.4 #4155
Comments
It looks like this commit might have introduced the problem c5d8582 |
yes, we're aware of this by now, but it's good we are tracking it as an issue now. According to this stackoverflow answer, the bundler picks up If you are using raw webpack, this config seems to do the trick:
if you are using CRA v4, the best course of action is to upgrade to V5, or downgrade RQ until we have a fix. We had it working for CRA v4 in the |
Thanks @TkDodo To summarize the quick fix: and fix react-query version in your package.json (remove ^) |
yes, you can fix your version to 4.3.3 (which has problems for react-native, but that's probably not what's troubling you :) ) |
That's working for me, thanks @TkDodo ! |
Describe the bug
When running webpack
webpack --config webpack.config.js
I'm getting this error on v4.3.4:This does not happen on v4.3.3, any ideas what happened here?
Your minimal, reproducible example
n/a
Steps to reproduce
Build app with webpack on v4.3.4
Expected behavior
I should not get import errors when building with webpack
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOS v11.6.5
Webpack v4.41.6
react-query version
4.3.4
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: