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

291
Visualizações
How to rename the create-react-app top level folder without conflict?

I've seen similar questions before, but the use cases seem to be renaming the app to another lowercase name or it never goes into potential problems that will occur if the folder being uppercase disrupts it other than going against npm conventions.

My ReactJS app is designed just to be a front-end application with client side routing, I don't plan on publishing it on to npm, but I will deploy it on a production level with potentially different types of web servers hosting it.

My method for renaming:

I want my react app to be placed in a folder called MyReactApp.

  1. Run npx cra. NPM doesn't allow uppercases: npx create-react-app MyReactApp

  2. So I run: npx create-react-app my-react-app

  3. My app now sits on a folder called my-react-app/src/index.js with a package name of my-react-app

  4. Now, can I simply go ahead and change only the top level folder name like: my-react-app/src/index.js to MyReactAppDiffName/src/index.js.

By doing it this way, am I potentially messing up dependency structures or introducing problems later on?

I'm currently in the early stages of my app after renaming it like this and there doesn't seem to be a problem yet. Sorry, I don't know if I'm simply overthinking the naming restriction and/or just assuming the top level folder is included under the package .

Also, I have seen this link, but I'm not sure if it's solely talking about the package name: https://github.com/npm/npm/issues/3914#issuecomment-24878907

  1. URL paths and couch doc ids are case sensitive.
  2. The file systems on most unixes are case sensitive.
  3. Human brains are mostly case INsensitive.

and this link: https://github.com/facebook/create-react-app/issues/2165#issuecomment-301627339

about 4 years ago · Juan Pablo Isaza
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