Quantcast
Channel: Typescript cant find module - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Abdelrhman ElSayed for Typescript cant find module

$
0
0

According to highcharts readme you need to import it something like this

import Highcharts from 'highcharts';

then you need to update your tsconfig.json file

{"compilerOptions": {"allowSyntheticDefaultImports": true,"esModuleInterop": true,"baseUrl": "./","module": "es6","moduleResolution": "node","target": "es6","paths": {"https://code.highcharts.com/es-modules/masters/*.src.js": ["node_modules/highcharts/*.src"      ]    }  }}

check thishttps://github.com/highcharts/highcharts#typescript--umd


Viewing all articles
Browse latest Browse all 2

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>