nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.82k stars 9.75k forks source link

Swiper Beta 4.0 uses the removed .use method from Dom7 #2225

Closed emmaB93 closed 7 years ago

emmaB93 commented 7 years ago

This is a (multiple allowed):

Problem

Swiper throws an error, because you removed the .use method but using it still in swiper.modular.js Line 39.

sebastiansulinski commented 7 years ago

Yeah - same problem here.

emmaB93 commented 7 years ago

Fixed with Version 4.0.0

sebastiansulinski commented 7 years ago

I don't think it has - I have version 4.0.0 installed and when compiling I still get the same error:

assets/js/front/app.js from UglifyJs
Unexpected token: name (Dom7) [./node_modules/dom7/dist/dom7.modular.js:14,0][assets/js/front/app.js:24208,6]
nolimits4web commented 7 years ago

@sebastiansulinski make sure there is a Dom7 v2.0.1 in your package.json dependencies. Also if you use ES module version, make sure you have transpiler enabled (like Babel or Buble)

sebastiansulinski commented 7 years ago

Thanks @nolimits4web. dom7 v2.0.1 is included with this package as its dependency so it must be available when compiling. I'm using laravel-mix to compile all resources - it uses webpack with babel and some other preprocessors - it's only this specific package that squeaks this error - the moment I remove it - it all compiles just fine.

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.