Closed emmaB93 closed 7 years ago
Yeah - same problem here.
Fixed with Version 4.0.0
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]
@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)
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.
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.
This is a (multiple allowed):
[x] bug
[ ] enhancement
[ ] feature-discussion (RFC)
Swiper Version: Beta 4.0
Platform/Target and Browser Versions: All Platforms
Problem
Swiper throws an error, because you removed the .use method but using it still in swiper.modular.js Line 39.