I am using "angular2-highcharts": "0.4.1" library for using highcharts in angular2 framework. It was working correctly. If I try to delete node_modules and install using npm install afresh it gives below error to imports
[INFO] Module '"C:/Projects/SpectrumAnalyzer/test/Viavi Monitoring View/MonitorView/MonitorView/node_modules/@types/highcha rts/modules/exporting"' resolves to a non-module entity and cannot be imported using this construct.
[INFO] Module '"C:/Projects/SpectrumAnalyzer/test/Viavi Monitoring View/MonitorView/MonitorView/node_modules/@types/highcha rts/modules/offline-exporting"' resolves to a non-module entity and cannot be imported using this construct.
It fails at the import statement below
import * as HichartsExporting from 'highcharts/modules/exporting';
import * as HichartsOfflineExporting from 'highcharts/modules/offline-exporting';
HichartsExporting(Highcharts);
HichartsOfflineExporting(Highcharts);
I checked node_modules changes they have done below changes :
node_modules/@types/highcharts/modules/exporting.d.ts Before : declare var HighchartsExporting: (H: Static) => Static; After :
declare function HighchartsExporting(H: Static): Static;
and same in
node_modules/@types/highcharts/modules/offline-exporting.d.ts Before : declare var HighchartsOfflineExporting: (H: Static) => Static;
After :
declare function HighchartsOfflineExporting(H: Static): Static;
Kindly suggest.
Thanks, Sardar Nale