Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

636
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!