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
this is my 'app.module.ts'
imports: [
BrowserModule,
FormsModule,
ChartModule.forRoot(require('highcharts'))
],
when i run 'ng serve',show the error->'ERROR in src/app/app.module.ts(71,25): error TS2304: Cannot find name 'require'.'
How can I do to fix it?
The text was updated successfully, but these errors were encountered:
and there is no valid way for production / packaging? I am using ng-packagr to pack my modules and it fails because of this very unconvenient way with a require function inside forRoot:
this is my 'app.module.ts'
imports: [
BrowserModule,
FormsModule,
ChartModule.forRoot(require('highcharts'))
],
when i run 'ng serve',show the error->'ERROR in src/app/app.module.ts(71,25): error TS2304: Cannot find name 'require'.'
How can I do to fix it?
The text was updated successfully, but these errors were encountered: