Open bhumin3i opened 5 years ago
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. So either you have to use one file named "environments.ts" or you have to list (at least one) files in the tsconfig with an extension you are currently using.
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.
Works if I build local, find if I build for ios and android.
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;