create-react-app starting error - Error: No valid exports main found for '\node_modules\colorette'
See original GitHub issueWhen installing create-react-app I get this error when I start the development server (npm start),
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for 'myproject\node_modules\colorette'
I’ve reinstalled create-react-app -g and tryed with npx and I still get this error. Is there anything else I can do?
this is the files of my new created react apps - without node_modules: newreactapp.zip
Issue Analytics
- State:
- Created 3 years ago
- Reactions:34
- Comments:74 (5 by maintainers)
Top Results From Across the Web
create-react-app starting error - Error: No valid exports main ...
Fixed this problem by upgrading node.js to v14.5, i've had v13.5 and v13.6 in my laptop. and also removing create-react-app globally:
Read more >How to fix “Error: No valid exports main found for ... - Dev Genius
Recently when I was developing for a React application that I hadn't pulled from the master branch in a while, I came across...
Read more >Fixing Create React App Error: No valid exports main found
If you're getting “No valid exports main found” in your Create React App, trying to install the latest version of NodeJS.
Read more >How to fix “Error: No valid exports main found ... - Godwill Barasa
On 12th May, as I was trying to “npm run dev” a react application that I hadn't pulled from the master branch in...
Read more >No valid exports main found for '/node_modules/colorette'
In this lesson, we are going to learn how to fix “Error: No valid exports main found for ... To continue on my...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed this problem by upgrading node.js to v14.5, i’ve had v13.5 and v13.6 in my laptop. and also removing create-react-app globally:
npm uninstall -g create-react-app
and using:
npx create-react-app myapp
Upgrade node to version 14.5 will resolve this issue.