You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified the first line of the minified script from the cnd, from:
vartns=(function(){...})()
to
exportconsttns=(function(){...})()
And now the import seems to work from a module.
I'll leave the issue open since I consider this as something to be fixed / improved. ES imports are the modern way to include stuff from other scripts.
Issue description:
Following the docs, if I include the js file from the cdn (I downloaded that file from https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.4/min/tiny-slider.js), and then try to import it in a module as:
I get this error in browser:
SyntaxError: ambiguous indirect export: tns
I see in the source that there's no export, just a global variable
tns
defined.Am I importing it wrong or using the wrong file?
Thanks.
P.S.: I don't use a bundler, so npm install is not an option for me.
P.S.2: cdn link for js file in readme is for version 2.9.2.
Tiny-slider version: 2.9.4
Browser name && version: firefox 114
OS name && version: linux
The text was updated successfully, but these errors were encountered: