The error occurred in the require([.

<script type="text/javascript" xml="space">
    // <![CDATA[
        require([  <-- The Error occured here
        ], function ($) {
            $(document).ready(function () {
                    loop: false,
                    margin: 17,
                    responsiveClass: true,
                    nav: true,
                    dots: false,
                            items: 1,
                            nav: true
                            items: 3,
                            nav: true
                            items: 2,
                            nav: true,
                            loop: false
    // ]]>

Error: Mismatched anonymous define() module: function(){return function Q(a,o,s){function l(n,e){if(!o[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(d)return d(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=o[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return l(t||e)},i,i.exports,Q,a,o,s)}return o[n].exports}for(var d="function"==typeof require&&require,e=0;e

  • see if this is related to you magento.stackexchange.com/questions/177187/… – Mohit Rane Aug 30 '19 at 4:23
  • @MohitRane Thanks for the links. It helps – Tora Aug 30 '19 at 7:07
  • it was the external js thats causing the error. if anyone is having the same error. Try to load the external js with require. ex: require(['url.js']); – Tora Aug 30 '19 at 7:23
  • ok I'm adding as an answer since it resolved your issue. Accept my answer so it will help others as well. ;) – Mohit Rane Aug 30 '19 at 7:38

Please see below solution, this could be your external js error

Magento 2 - Mismatched anonymous define()

Hope it helps.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.