New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module './.env' or its corresponding type declarations #575
Comments
Here is another user that obviously had encountered this behavior before: |
I have found the same issue and I think this might be a npm bug. @Wintermute79 Can you try executing I am running npm 7.0.14 in Windows 10 and I get a list of environment variables. However, according to npm documentation:
Rocket has an "env" command defined in package.json but still does not take precendence over the built in command. If you edit package.json and change the script name from env to env-fix, for example, running |
Thank you so much @jiniguez , that solves it. Running Once I rename Then the .env.ts file in src/environments is created as intended by I am running npm 7.0.3 and node 15.0.1 on Windows 10. |
I have the same issue |
Also encountered the issue and renaming "env" script to something else worked. I'm running in MacOS 11.1; npm 7.0.8; node v15.2.1. |
Thanks for pinpointing the issue and the fix, I could never reproduce this one! |
# [9.2.0](9.1.0...9.2.0) (2021-01-14) ### Bug Fixes * app not loading with Electron v11 ([1444bf0](1444bf0)) * incorrect hads version ([ba20ff1](ba20ff1)) * rename env script to fix execution in some environments (closes [#575](#575)) ([ec93fdb](ec93fdb)) * update electron templates ([3433465](3433465)) * update generator dependencies ([bda29d9](bda29d9)) * update jest config ([4b4a357](4b4a357)) * update packages and fix peer dependencies ([64098dc](64098dc)) * update RouteReusableStrategy for Angular 11 ([#576](#576)) ([3077f5b](3077f5b)) ### Features * add brazilian portuguese language ([1a6d728](1a6d728)) * enable webpack 5 ([8592a71](8592a71)) * migrate to @ngneat/until-destroy (fix [#577](#577)) ([3a77fcb](3a77fcb)) * update editorconfig (fixes [#580](#580)) ([9f036b3](9f036b3))
🎉 This issue has been resolved in version 9.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I'm submitting a...
Current behavior
On very first
npm start
right after creating a new project, I get the following error:Expected behavior
no error message
Minimal reproduction of the problem with instructions
npm install -g generator-ngx-rocket
ngx new
npm start
Environment
The text was updated successfully, but these errors were encountered: