swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.3k stars 1.15k forks source link

Cannot determine the module for class AxisLabelComponent #595

Open ramuda opened 7 years ago

ramuda commented 7 years ago

Error: Illegal state: Could not load the summary for directive AxisLabelComponent

What is the motivation / use case for changing the behavior? Ngc failing for angular5.x

Please tell us about your environment: Windows 7.

ramuda commented 6 years ago

Any updates on this issue?

ramuda commented 6 years ago

console log for this issue > ngc -p ./tsconfig.aot.json

Error: Cannot determine the module for class AxisLabelComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/axis-label.component.d.ts! Add AxisLabelComponent to the NgModule to fix it. Cannot determine the module for class XAxisTicksComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.d.ts! Add XAxisTicksComponent to the NgModule to fix it. Cannot determine the module for class XAxisComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/x-axis.component.d.ts! Add XAxisComponent to the NgModule to fix it. Cannot determine the module for class YAxisTicksComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.d.ts! Add YAxisTicksComponent to the NgModule to fix it. Cannot determine the module for class YAxisComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/y-axis.component.d.ts! Add YAxisComponent to the NgModule to fix it.

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\Program Files\nodejs\node.exe" "C:\Users\soumchatterj\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "ngc" npm ERR! node v6.9.5 npm ERR! npm v4.1.2 npm ERR! code ELIFECYCLE npm ERR! ngc: ngc -p ./tsconfig.aot.json npm ERR! Exit status 1 npm ERR! npm ERR! Failed ngc script 'ngc -p ./tsconfig.aot.json'. npm ERR! Make sure you have the latest version of node.js and npm installed.

ramuda commented 6 years ago

@swimlane/ngx-charts doesnt build with angular 5.0.2 but builds with any angular 4 version

marjan-georgiev commented 6 years ago

@ramuda please use version 7.0.1 with angular 5

ramuda commented 6 years ago

@marjan-georgiev : Cannot determine the module for class AxisLabelComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/axis-label.component.d.ts! Add AxisLabelComponent to the NgModule to fix it. Cannot determine the module for class XAxisTicksComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.d.ts! Add XAxisTicksComponent to the NgModule to fix it. Cannot determine the module for class XAxisComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/x-axis.component.d.ts! Add XAxisComponent to the NgModule to fix it. Cannot determine the module for class YAxisTicksComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.d.ts! Add YAxisTicksComponent to the NgModule to fix it. Cannot determine the module for class YAxisComponent in D:/ISS/ui-core/node_modules/@swimlane/ngx-charts/release/common/axes/y-axis.component.d.ts! Add YAxisComponent to the NgModule to fix it.

Getting same error using ngx-charts 8.0.2 and angular 6.0.3 with fullTemplateTypeCheck = true