cancel
Showing results for 
Search instead for 
Did you mean: 

RequireJS breaks on every refresh

SOLVED

RequireJS breaks on every refresh

When I make changes on my local dev server, I have to remove pub/static/frontend.

If I try to refresh the page again (even without making any more changes), I get 4-5 Require errors.

Is there anything that I can do about this? It's really hard to get anything done this way.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: RequireJS breaks on every refresh

I found that post, and tried it a while ago.

I ended up fixing it by switching the mode to production, and then back to developer.

View solution in original post

2 REPLIES 2

Re: RequireJS breaks on every refresh

Hi @media_bloke 

Kindly refer below URL:

https://magento.stackexchange.com/questions/95092/magento2-not-reading-my-requirejs-config-js

This will help you to resolve issue.

Issue resolved ?
Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: RequireJS breaks on every refresh

I found that post, and tried it a while ago.

I ended up fixing it by switching the mode to production, and then back to developer.