Hi,
Thanks! Of course you can ask questions here!
I'm not exactly sure where this issue stems from but I'll try to help you either way.
1. You shouldn't have to do this
window.Highcharts = Highcharts if you do
import Highcharts from 'highcharts'. I'm sure that this is not necessary when you import Highcharts installed through
npm or
yarn but from what I can see you're doing it with importmap "pin"
2. Also, another difference is that when you install highcharts through
npm you get the full package with all the additional modules that you can import (including highcharts-more). So then you can do
import HighchartsMore from 'highcharts/highcharts-more' and wrap it similarly to the way you do with Highcharts wrappers:
https://github.com/highcharts/highchart ... d-a-module
So, one pin will not be enough for you as your pin refers to a single script (
highcharts.js) which does not include highcharts-more (which is included in the npm package in
highcharts/highcharts-more.js).
P.S. Maybe you could find these articles useful:
-
https://www.highcharts.com/blog/tutoria ... ighcharts/
-
https://medium.com/@ellencooper74/creat ... b202ac2fb1
Let me know if I was clear with my explanation. Also, if you post this question on StackOverflow please include a link here.
Best regards!