Skip to content

Commit 6d44c22

Browse files
committed
fixing install error
1 parent 1846f7e commit 6d44c22

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

frontend/main.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
2-
import {ApplicationRef, enableProdMode} from '@angular/core';
2+
import {enableProdMode} from '@angular/core';
33
import {environment} from './environments/environment';
44
import {AppModule} from './app/app.module';
5-
import {enableDebugTools} from '@angular/platform-browser';
65

76
if (environment.production) {
87
enableProdMode();
9-
}
8+
}
109

11-
platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => {
12-
const applicationRef = moduleRef.injector.get(ApplicationRef);
13-
const componentRef = applicationRef.components[0];
14-
// allows to run `ng.profiler.timeChangeDetection();`
15-
enableDebugTools(componentRef);
16-
}).catch(err => console.error(err));
10+
platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"main": "./backend/index.js",
99
"bin": "./backend/index.js",
1010
"scripts": {
11-
"installx": "tsc && gulp build-prod",
11+
"install": "tsc && gulp build-prod",
1212
"build-release": "gulp build-release",
1313
"build-backend": "tsc",
1414
"pretest": "tsc",

0 commit comments

Comments
 (0)