From 6d44c22df13b8f9416715e86e160707d0c3f973a Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 21 Jul 2019 17:26:23 +0200 Subject: [PATCH] fixing install error --- frontend/main.ts | 12 +++--------- package.json | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/main.ts b/frontend/main.ts index 5d207f1f..977b5c1e 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -1,16 +1,10 @@ import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; -import {ApplicationRef, enableProdMode} from '@angular/core'; +import {enableProdMode} from '@angular/core'; import {environment} from './environments/environment'; import {AppModule} from './app/app.module'; -import {enableDebugTools} from '@angular/platform-browser'; if (environment.production) { enableProdMode(); -} +} -platformBrowserDynamic().bootstrapModule(AppModule).then(moduleRef => { - const applicationRef = moduleRef.injector.get(ApplicationRef); - const componentRef = applicationRef.components[0]; - // allows to run `ng.profiler.timeChangeDetection();` - enableDebugTools(componentRef); -}).catch(err => console.error(err)); +platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err)); diff --git a/package.json b/package.json index d912e54b..9ca72b15 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "./backend/index.js", "bin": "./backend/index.js", "scripts": { - "installx": "tsc && gulp build-prod", + "install": "tsc && gulp build-prod", "build-release": "gulp build-release", "build-backend": "tsc", "pretest": "tsc",