-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
React build breaks after migrating to 15.5.1 #14389
Comments
Mentioning this here as potentially related? |
I think it more excepted behavior because webpack removed polyfills by default in v5, same did nx team |
It is not mentioned or reported anywhere as a breaking change (and in a minor version), so I would not expect anything to break. |
Seems related to a change added in #14285 |
I'm also running into this. |
Same issue on a react project. Was trying to migrate from 15.0.3 -> 15.5.2 |
@bdebon migrating to 15.4.4 works for me now. |
encountered same issue when upgraded from 15.4.2 -> 15.5.2 |
According to my test it appeared in 15.4.6 |
15.5.3 Still has the same problem. |
Also hitting this issue, pretty surprising for a minor bump |
This should be fixed in latest version. Can you please try again with latest ( |
Hello,
and here is the list of our deps
|
Hey! Thank you for the feedbacks! |
The issue is that We'll patch this in the next release, for now the workaround is to edit your e.g. const { composePlugin } = require('@nrwl/webpack');
const { withReact } = require('@nrwl/react');
module.exports = composePlugin(withReact, (config) => {
config.resolve = ['browser', 'module', 'main'];
return config;
}); And make sure
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@ZackTherrien That looks like a different issue. |
Fixed here #14546 |
const { composePlugins } = require('@nrwl/webpack');
const { withReact } = require('@nrwl/react');
module.exports = composePlugins(withReact(), (config) => {
config.resolve.mainFields = ['browser', 'module', 'main'];
return config;
}); seems to be more accurate |
I confirm the migration to the |
Thanks @jaysoo @mandarini ❤️ |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After we migrated to v15.5.1 (from 15.4.4), a few of our React apps started failing on builds.
There was a polyfill for node (which I couldn't find in code history, but it might have been another polyfill) that does not exist anymore.
We are using a custom webpack configuration which is using the plugin from
@nrwl/react/plugins/webpack
.I assume this is caused by one of those:
Expected Behavior
Should work as it previously did.
Github Repo
No response
Steps to Reproduce
graphql-request
Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: