Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Please provide an empty .env file in your repository #8

Closed
oweitman opened this issue May 6, 2021 · 1 comment
Closed

Please provide an empty .env file in your repository #8

oweitman opened this issue May 6, 2021 · 1 comment

Comments

@oweitman
Copy link

oweitman commented May 6, 2021

if the file didnt exist, the start of the program exits

`
yarn run v1.22.10
$ yarn build && env-cmd node build/index.js

$ tsc

Error: Failed to find .env file at default paths: [./.env,./.env.js,./.env.json]
at getEnvFile (C:\Users\msowa\Documents\Visual Code\impftermin\node_modules\env-cmd\dist\get-env-vars.js:58:11)
at async Object.EnvCmd (C:\Users\msowa\Documents\Visual Code\impftermin\node_modules\env-cmd\dist\env-cmd.js:39:15)
at async Object.CLI (C:\Users\msowa\Documents\Visual Code\impftermin\node_modules\env-cmd\dist\env-cmd.js:19:16)
error Command failed with exit code 1.
`

Operationg System Windows 10
IDE Visual Studio code

@marcoklein
Copy link
Owner

Interesting. This is an issue with the env-cmd plugin that loads environment files.
As suggested there I am adding the --silent flag to run without an .env. Creating a default empty file would impose too much risk of an accidental commit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants