Back to Angular

Devtools.Component

devtools/projects/ng-devtools/src/lib/devtools.component.html

22.0.0-next.101.5 KB
Original Source

@switch (angularStatus()) { @case (AngularStatus.EXISTS) { @if (appData().devMode) { @if (supportedVersion()) {

} @else { upgrade

Angular DevTools only supports Angular versions {{ LAST_SUPPORTED_VERSION }} and above.

} } @else { code_off

We detected an application built with a production configuration. Angular DevTools only supports development builds.

If this application was built in development mode, please check if the window.ng global object is available in your application. If it is missing, then something is preventing Angular from running in development mode properly.

  • Are you calling enableProdMode() in your application? Read more about enableProdMode() on angular.dev.
  • Is "optimization": true set in your angular.json? Read more about optimization configuration on angular.dev.
  • Is "defaultConfiguration": "production" set in your angular.json? Read more about default configurations on angular.dev.

If you are still experiencing problems, you can open an issue with a reproduction on our issue tracker.

} } @case (AngularStatus.DOES_NOT_EXIST) { error

Angular application not detected.

} @case (AngularStatus.UNKNOWN) {

} }