Cannot find module 'postcss-preset-env' error when trying to build a CRA app #807
Replies: 7 comments 6 replies
-
I am running into the exact same problem. I know that we are supposed to run |
Beta Was this translation helpful? Give feedback.
-
Interesting enough, the issue only occurs with npm install. If I run yarn install, the issue goes away!!! So this may be an npm/CRA specific problem. |
Beta Was this translation helpful? Give feedback.
-
Just ran into this issue, I got no clue what's going on but I did create an app a few days ago and everything was fine. Now I get the same issue you guys got... |
Beta Was this translation helpful? Give feedback.
-
i had the same error, try to check node and npm versions, i found out the lastest react version (installed when i run npx create-react-app) works with the node's lastest version. |
Beta Was this translation helpful? Give feedback.
-
I have same problem as well with you guys when I try to create a react app I have no idea what is going on. I have done npm install as well thinking that will change anything but I guess not. |
Beta Was this translation helpful? Give feedback.
-
did you folks ever resolve this? |
Beta Was this translation helpful? Give feedback.
-
I had the same problem using "npx create-next-app@latest", and I solved it by installing "postcss-preset-env" like this: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to build a
create-react-app
app but I'm getting this error:If I run
npm install
inside the CRA app, it seems to work but I'm not sure if that's how you are supposed to install things inside the monorepo.Here is an example: https://github.com/oncet/turborepo-cra
Beta Was this translation helpful? Give feedback.
All reactions