I use https://angular.io/guide/quickstart to start learning Angular2, but I notice that the console log "Angular 2 is in development mode. Call enableProdMode () to enable production mode." Therefore, I added the following to main.ts:
import { bootstrap } from '@angular/platform-browser-dynamic'; import { AppComponent } from './app.component'; enableProdMode(); bootstrap(AppComponent);
Now the browser has an error
enableProdMode is not defined (...)
So, I found this article https://github.com/angular/angular/issues/6096 .
It seems like I'm doing it right and working on others, so maybe my package files or npm modules have something wrong? help, or do you know which module uses enableProdMode?
source share