- Download source files
- Run
npm install
to install all dependencies. - Run
npm run build
to bundlesrc/app.js
intodist/bundle.js
- Open
index.html
in a browser.
Notice that imports should be done as the following:
// Do this. Import entire module into a single variable.
import * as Highcharts from 'highcharts';
// Do not do this. Works only with modules who exports a default
import Highcharts from 'highcharts'
You haven't included any types for highcharts..or provided any examples of using Highharts in a .ts file..