I have added javascript files in require js but it is not showing in the inspect element that my javascript files are attached and it is not working.
What should I do? I have cleared cache and folders and almost everything deleted.
All cache folders and almost everything but not working.

What should I do in this?

My require.js is in code/vendor/module folder 

    var config = {
    map: {
       '*': {
           jssor: 'js/jquery-1.11.3.min',
           jssorSlider: 'js/jssor.slider-27.5.0.min'
   shim: {
        slick: {
            deps: ['jquery']
  • your requirejs-config.js should be in code/vendor/module/view/frontend – magefms Feb 25 at 10:12
  • Could you post your require-config file with path – aravind Feb 25 at 10:47
  • code/vendor/module – samair ali Feb 26 at 0:12
  • updated the require.js file also – samair ali Feb 26 at 0:13
  • You should try to put your requirejs from this path : code/vendor/module/view/frontend – magefms Feb 26 at 1:27

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.