-
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
Nx Migrate broke my build #9719
Comments
Same issue here. Upgrading from |
After deleting my |
Can you test this on 13.10? It is also fixed in the new 14.0 release. The issue should be fixed in both for |
I'm going to close this issue as it has been fixed in both 13.10 and 14.0. If you continue to experience issues, make sure you are using one of the above versions, and then also check that you don't set |
@jaysoo pls check the documentation about custom environment variables: the suggested changes about webpack, cause the warning. const raw = Object.keys(process.env)
.filter((key) => NX_APP.test(key))
.reduce(
(env, key) => {
env[key] = process.env[key];
return env;
},
{
NODE_ENV: process.env.NODE_ENV || configuration,
}
); to this: const raw = Object.keys(process.env)
.filter((key) => NX_APP.test(key))
.reduce(
(env, key) => {
env[key] = process.env[key];
return env;
},
process.env.NODE_ENV === 'production' ? {
NODE_ENV: process.env.NODE_ENV || configuration,
} : {}
); |
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
Broke the build
Expected Behavior
Migrate should keep the build green
Steps to Reproduce
I started with the env in #9662 and ran the upgrade to
latest
NX as described in #9662 (comment)Workaround
I manually made these changes
as suggested in #7924 (comment)
Is there a reason that issue remains closed despite plethora of users reporting the issue is still present?
Failure Logs
Environment
Before, I had the env in #9662
Now, after running the migrations I have:
The text was updated successfully, but these errors were encountered: