0

Magento 2 require js throw error

I am using Magento 2.2.0

var config = {
    paths: {            
            'owlcarousel': "Module_Banners/js/owl.carousel.min",
            'custom': "Module_Banners/js/sp_banner"
        },   
    shim: {
        'owlcarousel': {
            deps: ['jquery']
        }
    }
};

Uncaught Error: Script error for: owlcarousel http://requirejs.org/docs/errors.html#scripterror at makeError (require.js:166) at HTMLScriptElement.onScriptError (require.js:1681)

  • We need more information where you use the owl carousel – Mohamed El Mrabet Dec 12 '17 at 13:25
  • In my custom Module Root folder i create like this requirejs-config.js – Magento 2 Dec 12 '17 at 13:27
  • Did you run deploy command? – Rakesh Jesadiya Dec 12 '17 at 13:50
  • Yes I run ...... – Magento 2 Dec 12 '17 at 15:46

Your Answer

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

Browse other questions tagged or ask your own question.