Hello. I find that cdn not contain amcharts 4 library, only 3 version. Can somebody add it ?https://www.amcharts.com/download/
It seems that amcharts changed their repo name from
amcharts/amcharts4 and this broke the autoupdate function in cdnjs.
You can fix this issue (and the other one you are having) with a PR to the cdnjs repo.
If you can’t or don’t know how let me know and I will see if I can fix it this weekend.
I am in no way linked to cdnjs or cloudflare, I will be doing this in my own free time so please understand if I can’t do it straight away.
I opened a PR: https://github.com/cdnjs/cdnjs/pull/13820
Hello. I tried to use this lib and find mistake. On cdnjs we have not compilate version from https://github.com/amcharts/amcharts4/tree/master/dist/es2015
but if we will use it we need folder .internal.
Can you change it on https://github.com/amcharts/amcharts4/tree/master/dist/script ?
Hi @kostaz ,
It seems that the cdnjs bot ignores hidden folders, not sure if that is by design or not.
Also I noticed that it didn’t add the
.ts files even though this was added in
@MattIPv4 can you give more info about this?
amcharts4 is updating via NPM, so it does not use the folders from the GitHub repo @kostaz.
We are pulling in all the files from
@amcharts/amcharts4, excluding the examples.
.ts files, I think there might be a
.gitignore somewhere that’s stopping them being added. They’re only typings files though, so this shouldn’t break browser usage at all.
@MattIPv4 I downloaded amcharts4 from NPM and it does include the
.internal folder. So this is definitely an issue on cdnjs side.
amCharts 4 doesn’t work.
core.min.js:1 Uncaught SyntaxError: Unexpected token ‘export’
charts.min.js:1 Uncaught SyntaxError: Unexpected token ‘export’
Hmm actually this makes this library unusable on cdnjs I don’t think you can use it in your project.
@MattIPv4 what do you think about this? I didn’t know the code was module based.
ES Modules are supported in modern browers if you add
type="module" to the script tag. Not much we can do if the library only provides ESM bundles in their package.
It is information from official github https://github.com/amcharts/amcharts4 .
cdnjs uses NPM and it contains TS and JS files.
Both from NPM and available in cdnjs
Apologies for the late reply here. Please create an issue on cdnjs/cdnjs proposing the idea of changing this library to using git auto-update, as well as information about why this change should happen and what files you think are needed (based on the conversation here).