Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

This application is running in production mode and therefore cannot be inspected using Augury. If this is an Angular application, please rebuild your application in debug mode or remove the call to enableProdMode(). #1252

Closed
hzt555 opened this issue Nov 21, 2017 · 6 comments

Comments

@hzt555
Copy link

hzt555 commented Nov 21, 2017

Augury: 1.14.0
Date: Tue, 21 Nov 2017 04:39:39 GMT
OS: Win32

Angular version (required): 4.2.4

Steps to reproduce:
1.use angular/cli to build a project
2.run ng server and open 'http://localhost:4200/'
3.use Chrome and press F12 - Augury,but show info :
This application is running in production mode and therefore cannot be inspected using Augury. If this is an Angular application, please rebuild your application in debug mode or remove the call to enableProdMode()

but I am sure and console show Angular is running in the development mode. Call enableProdMode() to enable the production mode.

@gentoo90
Copy link

gentoo90 commented Mar 1, 2018

I had the same problem, but is was gone when I added

  "angularCompilerOptions": {
    "debug": true
  }

to my tsconfig.json. This is mentioned in README, but it should probably be added to the error message itself.

@combine13
Copy link

As @gentoo90 said - add this in the tsconfig.json
"angularCompilerOptions": { "debug": true }

But also put comment on enableProdMode(); in main.ts file so that it is:
// enableProdMode();

Rebuild the app and go to Augury in the console - you should now be able to use it.

Cheers

@andrewthauer
Copy link
Contributor

This issue was occurring for some people but was reported as fixed in Augury 1.16.0.

@Maryannah
Copy link

@andrewthauer how is that fixed ? I'm facing this issue on a project I have created this morning.

Do you mean it's fixed like "it will never happen again", or fixed like "we documented it in our guides" ?

@racouster
Copy link

if (environment.production) {
enableProdMode();
}

This breaks Augury...

@YuryHalamaka
Copy link

Have the same problem, tried all the solutions, suggested above, but nothing helped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants