gevgeny / angular2-highcharts

:bar_chart: :chart_with_upwards_trend: Highcharts for your Angular project
MIT License
380 stars 113 forks source link

Error on npm start #119

Open helenoalves opened 7 years ago

helenoalves commented 7 years ago

I got the same issue as #110. But I dont found any solution updating the typescript version.

tsc -v Version 2.0.10

When I running:

npm start

I got:

heleno@heleno-desktop:/opt/manager/manager-angular$ npm start

manager@1.0.0 start /opt/manager/manager-angular tsc && concurrently "tsc -w" "lite-server"

node_modules/angular2-highcharts/dist/ChartComponent.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax. node_modules/angular2-highcharts/dist/ChartEvent.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax. node_modules/angular2-highcharts/dist/HighchartsService.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax.

When I installed angular-highcharts I got:

heleno@heleno-desktop:/opt/manager/manager-angular$ npm start

manager@1.0.0 start /opt/manager/manager-angular tsc && concurrently "tsc -w" "lite-server"

node_modules/angular2-highcharts/dist/ChartComponent.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax. node_modules/angular2-highcharts/dist/ChartEvent.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax. node_modules/angular2-highcharts/dist/HighchartsService.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax.

I forgot something during install ? Or anyother help ?

Thanks

jerzytuleja commented 7 years ago

@helenoalves I had similar issue and in my case update of typescript and typings helps.

helenoalves commented 7 years ago

Thanks @jerzytuleja ! I descided to use highcharts directly without the module. Maybe in the future I try to use it again.