I'm working on a project where I'm using amcharts but can't seem to get it working when I want to download and use the libraries from my own server, like this:
But when importing the react component I get an error saying that AmCharts is not defined.
The thing is that it does work when adding the script tags from the CDN. so I have no clue of what might be failing.
I decided to use the 'create-react-app' to see if some weird dependency from my project but I get the same result so I guess that I might be doing something wrong.
Here you can see my package.json and the import:
I'm working on a project where I'm using amcharts but can't seem to get it working when I want to download and use the libraries from my own server, like this:
But when importing the react component I get an error saying that AmCharts is not defined.
The thing is that it does work when adding the script tags from the CDN. so I have no clue of what might be failing.
I decided to use the 'create-react-app' to see if some weird dependency from my project but I get the same result so I guess that I might be doing something wrong. Here you can see my package.json and the import:
Thanks in advance.