After upgrading Magento from version 2.1.1 to 2.1.17, I am facing this error
Uncaught TypeError: require is not a function at editor.js:6
across admin area especially in edit pages
when I look at html -> head I see that js file
en_US/Magento_Backend/js/bootstrap/editor.js
is called first before requirejs file
Please help
1 Answer 1
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.
OR
Follow below steps . I think it's solve your problem
- Remove Your Cache
- Clean theme by command : grunt clean
- Run CMD command prompt with administrator privilege
- run command : grunt exec:yourthemename
- run command : grunt less:yourthemename
- run command : grunt watch
Basically working and the right solution, but with the limitations of #6367
Explore related questions
See similar questions with these tags.