-
Notifications
You must be signed in to change notification settings - Fork 12k
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
app that uses isDevMode() api, cuases an error when built or served in prod mode #3495
Comments
I didn't investigated that enough for now, but I could reproduce it, and it seems to be an angular/angular issues. I'll search any existing issue about that and investigate more as soon as I could. |
Found it : angular/angular#10643 Edit : from angular/angular#12200 : "the setting has to agree what was used in the compiler setting, otherwise Angular does not work." - maybe there is something to investigate in that field ... |
This is expected behavior. You can't use isDevMode before enableProdMode. |
Shouldn't you check the environment provider rather than call isDevMode()? |
As @clydin said, you can't use There might be something to angular/angular#12200, but this will probably be an API change that we'll implement when available. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
The log given by the failure.
The text was updated successfully, but these errors were encountered: