Search Posts

Author: reiner luke

Ionic3 Highcharts-More import Error –JsAllow Not Set

I try to import Highcharts-more like this: import Highmore from ‘../../node_modules/highcharts/highcharts-more’; then im getting the following Error: Module ‘../../node_modules/highcharts/highcharts-more’ was resolved to ‘C:/Users/…/node_modules/highcharts/highcharts-more.js’, but ‘–allowJs’ is not set. So I go into my tsconfig.json and add allowJs to my settings: { “compilerOptions”: { “allowJs”: true, “allowSyntheticDefaultImports”: true, “declaration”: false, “emitDecoratorMetadata”: true, “experimentalDecorators”: true, “lib”: [ “dom”, “es2015” ], “module”: “es2015”, “moduleResolution”: “node”, “sourceMap”: true, “target”: “es5” }, “include”: [ “src/**/*.ts” ], “exclude”: [ “node_modules” ], […]