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

638
Visualizações
Electron app Error: ENOENT: no such file or directory, open '/.env'

I'm a really young developper, sorry if my question is obvious. I tried everything, but nothing works in my case, or maybe i'm doing it wrong.

I'm actually trying to build a React Typescript Electron App with electron-builder. When I'm starting my app localy with yarn start, everything is good, but when I'm trying to build, this issue appears.

What I understand is : my .env file isn't in my built app file. How can I tell to my builder to take into account my .env file ? Someone can help me please ? Thank you :)

Maybe this will be usefull : project files, scripts

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

why you need to use .env file at the first place, it wouldn't be secure cz, all of your data will be created or stored in the system. so if you want to use security credentials in electron application, you should use some cloud-based store that will provide secure access to get credentials otherwise store it in common js or JSON file. the solution is if you're using electron builder you can always use extraResources or asarUnpack.

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