-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error: Cannot find module "@app/env" #34
Comments
Have you solved this problem? |
@jiamoon no still facing same :( |
If your files in your "./src/environments" folder have a ".dev.ts" or ".prod.ts" extension, this does not match the path settings in tsconfig.json. |
For some reason I just got this to happen to me. app/env just stopped working. Out of the blue when I build for ionic browser. Cannot find module '@app/env' or its corresponding type declarations. |
package.json
weback.config.js
tsconfig.JSON
USE in my code
import { ENV } from '@app/env'; //error
SERVER_URL: string = ENV.mode;
The text was updated successfully, but these errors were encountered: