cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught TypeError: require is not a function

Uncaught TypeError: require is not a function

I am getting the following error on every admin page.

Uncaught TypeError: require is not a function at editor.js:6

I haven't been able to pinpoint where to correct. I have tried clearing of the static files. It doesn't seem to have an effect on the frontend.

1 REPLY 1

Re: Uncaught TypeError: require is not a function

I think I've figured out why it's happening, just can't figure out where to fix it. I see the following code in the header, but being a noob to Magento 2 where would I find the place to reverse these?

<script type="text/javascript" src="http://supersaf.nextmp.net/pub/static/adminhtml/Magento/backend/en_US/Magento_Backend/js/bootstrap/editor.js"></script>
<script type="text/javascript" src="http://supersaf.nextmp.net/pub/static/adminhtml/Magento/backend/en_US/requirejs/require.js"></script>