question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create-react-app starting error - Error: No valid exports main found for '\node_modules\colorette'

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:34
  • Comments:74 (5 by maintainers)

github_iconTop GitHub Comments

70reactions
matanolcommented, Jul 6, 2020

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

58reactions
nguyenquocdailecommented, Jul 8, 2020

Upgrade node to version 14.5 will resolve this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found