Can't find variable: exports
seldimi opened this issue · comments
After version 2.9.2, each time we use dist or src tiny-slider.js, there following error is on console:
Can't find variable: exports
CDN is 2.9.2 so I cannot compare.
Any ideas?
Looks like exports are in a file called browserstack.conf.js.
You can try loading that first however I just added this to the top of the js file. Not 100% sure the consequences to this so I don't recommended it.
var exports = {};
I’m sorry I haven’t understood. Following the simple install steps with npm, without any other dependencies tns won’t be useable and we will have to put that initialization array before import?
Try to use tiny-slider.js from dist/min directory
I had the same, it was because I was instantiating the slider carousel inside a jQuery document.ready. Try moving this outside of jQuery.
I see.
But jQuery is widely spread (still) so there should be another workaround.
For the time being, I use webpack with dist folder
Try to use tiny-slider.js from dist/min directory
this is solved my issue thanks
Yes using the tiny-slider.js from dist/min directory works, but ...
it's the minified version and sometime for debugging the non minified version is useful.