Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
create-react-app starting error - Error: No valid exports main found for '\node_modules\colorette'

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 globally with create-react-app -g and tried running it with npx, but I still get this error. Is there anything else I can do?

over 4 years ago · Santiago Trujillo
7 Respostas
Responde à pergunta

0

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
over 4 years ago · Santiago Trujillo Relatório

0

Node version 13 has an issue for ReactJs, please check your version. You can update or degrade(LTS version) your node version to work ReactJs properly

over 4 years ago · Santiago Trujillo Relatório

0

Upgrade to version 14.5 will solve this issue.

over 4 years ago · Santiago Trujillo Relatório

0

you need to upgrade node version to 14.5 or latest version with:

sudo n latest // on mac or linux for latest version

for windows just reinstall you node with latest version

over 4 years ago · Santiago Trujillo Relatório

0

This is because latest version of colorette doesn't supported on node Version < 14. Try below steps if you don't want to install node V14.5

To uninstall colorette: npm uninstall colorette

To install colorette version 1.2.0: npm install colorette@1.2.0

This fixed my issue.

Else you can simply upgrade the node version.

over 4 years ago · Santiago Trujillo Relatório

0

Fixed this problem by upgrading node.js to v14.5.0. After upgrading, I also had to delete my node_modules folder and rerun npm install.

over 4 years ago · Santiago Trujillo Relatório

0

For anyone using nvm,

you can use nvm install <version-number> to install any version.

In my case, I had v13.2.0 previously installed.

So, I checked all available versions with nvm ls-remote

And then picked the latest version to install like so:

nvm install v14.8.0

and as per @iamnabink comment - nvm use v14.8.0

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda