-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
TypeError: Cannot read properties of undefined (reading 'dependencies') #437
Comments
This is likely due to using a |
I solved the problem in this way
|
// process.env.BABEL_ENV = "production"
// process.env.NODE_ENV = "production"
process.env.BABEL_ENV = process.env.NODE_ENV
process.env.NODE_ENV = process.env.NODE_ENV
// const config = configFactory("production");
const config = configFactory(process.env.NODE_ENV);
"scripts": {
...
"build": "NODE_ENV=production react-scripts build",
"build-dev": "NODE_ENV=development react-scripts build",
"postinstall": "npx patch-package"
...
},
thanks for the idea @alekseyBatuhtin @zqianem |
Issue happens with npm 9.2.0, which is currently bundled with the latest stable node version. Installing node LTS with npm 8.19.2, removing the lockfile and generating a new one, can also be used as a workaround until #434 lands. |
Anyone tried to use patch-package to patch patch-package so you can run patch-package? |
Update has been released in 6.5.1 and is working fine, thanks! |
In my case I realized that somehow there are both |
This is happening to me with
|
good idea |
I tried to use this in my project. then it says an error.
using npm
The text was updated successfully, but these errors were encountered: