You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today i create new project through ngx-rocket cli, and when i print npm start in console, i'v got error
Module not found: Error: Can't resolve './.env' in '/home/mef45/devel/gitlab/taxsee-monitoring-frontend/src/environments'
ERROR in src/environments/environment.ts:11:21 - error TS2307: Cannot find
module './.env' or its corresponding type declarations.
11 import { env } from './.env';
If i rename env script to something else, eg: "dotenv": "ngx-scripts env ...", all works as expected
See ngx-rocket/generator-ngx-rocket#575, I don't know why it behaves like that on some systems but the npm script will be renamed to "write:env" to avoid this issue in the future.
You can safely do the same in your project.
Today i create new project through ngx-rocket cli, and when i print
npm start
in console, i'v got errorIf i rename env script to something else, eg:
"dotenv": "ngx-scripts env ..."
, all works as expectednpm run env
output is really weird"npm run env" output
ngx debug info
The text was updated successfully, but these errors were encountered: