shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

Calling function 'ChartModule', function calls are not supported. #303

Open DBuit opened 7 years ago

DBuit commented 7 years ago

Hello,

I merged my angular2 project to angular-cli so i could use build functions and aot rendering. At the moment i cant build my project because i'm getting the following error: Calling function 'ChartModule', function calls are not supported.

Full error:

screen shot 2017-02-16 at 14 44 49

I can use ng serve, but it also fails with the same error but just not always.

Someone can help me? Im using version 2.0.3 and angular 2.4.1

Thank you!

jfinci commented 7 years ago

Also seeing this

pierfreeman commented 7 years ago

Same error!

babysharny commented 7 years ago

Same error =(

ewdegraaff commented 7 years ago

Apparently ChartModule is not aot compatible. Depending what it is (angular2-highcharts?) then it is known by the author and there seems to be a work around available here), but it is not going to be pretty..

AbelValdez commented 7 years ago

Hello,

I used to have the same issue but the issue in my code was the orders import. Example: before:

import { LineChartComponent } from './CommonComponents/LineChart/linechart.component';
import { ChartModule } from 'angular2-highcharts';

now:

import { ChartModule } from 'angular2-highcharts';
import { LineChartComponent } from './CommonComponents/LineChart/linechart.component';

linechart.component its my component template that inside has a linechart highcharts component, then when I try to use it I got this error. after changes the lines order imports it works normally