You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed angular2-highcharts on my Angular Project, implemented that. Its working but in ng serve mode. But when I executed the command ng build --prod. I got the error : Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'ChartModule' was called.
Its working fine when i executed ng build.
Here is my app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { NgModule } from '@angular/core';
import { ChartModule } from 'angular2-highcharts';
import { AppComponent } from './app.component';
import { HttpModule } from '@angular/http';
declare var require : any;
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,HttpModule,
ChartModule.forRoot(require('highcharts/highstock'),require('highcharts/modules/drilldown')),
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
platformBrowserDynamic().bootstrapModule(AppModule);
The text was updated successfully, but these errors were encountered:
I installed
angular2-highcharts
on my Angular Project, implemented that. Its working but inng serve
mode. But when I executed the commandng build --prod
. I got the error :Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'ChartModule' was called.
Its working fine when i executed
ng build
.Here is my app.module.ts
The text was updated successfully, but these errors were encountered: