When running grunt exec require.js not a function error appeared. enter image description here

  • delete the existing require js from pub/static/_requirejs/frontend/Namespace/Theme/en_US requirejs-config.js path and refresh the page again so it will regenerate it and solve the error of js not found.
    – Ruhani
    Jul 24, 2018 at 7:15
  • If you fix this issue please let me know. I have faced this issue in Magento_Backend/js/bootstrap/editor.js
    – Ramanathan
    Mar 18, 2019 at 7:48

1 Answer 1


Follow below steps . I think it's solve your problem

  1. Remove Your Cache
  2. Clean theme by command : grunt clean
  3. Run CMD command prompt with administrator privilege
  4. run command : grunt exec:yourthemename
  5. run command : grunt less:yourthemename
  6. run command : grunt watch

Basically working and the right solution, but with the limitations of #6367

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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