Reputation: 497
I have a strange problem and It would be highly appreciated if somebody could help me with this. Have been looking for hours now.
We created a test website for the company I work for.
See
http://socialmediabot.nl/html/
The website works as it should be. When copying the website to the main host (different server)
https://www.aska-ltd.jp/
The javascript stops working. What could be the problem with this? Somehow on the new host it gives an error;
Uncaught SyntaxError: Invalid or unexpected token
jquery-3.3.1.slim.min.js:2 jQuery.Deferred exception: Swiper is not defined ReferenceError: Swiper is not defined
at HTMLDocument.<anonymous> (https://www.aska-ltd.jp/js/base.js:22:19)
at l (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:29567)
at c (https://code.jquery.com/jquery-3.3.1.slim.min.js:2:29869) undefined
w.Deferred.exceptionHook @ jquery-3.3.1.slim.min.js:2
jquery-3.3.1.slim.min.js:2 Uncaught ReferenceError: Swiper is not defined
at HTMLDocument.<anonymous> (base.js:22)
at l (jquery-3.3.1.slim.min.js:2)
at c (jquery-3.3.1.slim.min.js:2)
Anybody saw something like this before?
[update]
Could it be possible that there is something wrong with the server settings?
Upvotes: 0
Views: 323
Reputation: 3818
There is a syntax error in js/swiper.min.js file. Check errors in console log of DevTools of your browser for details.
Try to replace it with content of according file from test server.
Upvotes: 1