Javascript is broken with the cloudfare cache

When I switch to the development mode the website works with the js animation works correctly (see ) but I switch to off this mode it does not working.

I have this error in the console:

Uncaught Invariant Violation: Minified React error #32; visit[]=2 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

For info I tried to disable the js minification and rocket loader but I have already this error.

Any idea?

Did you also purge the cache?

Yes I tried.

The file is, right?

That file still seems to be minified. Considering you purged the cache and disabled minification I’d assume at this point that comes from your server. Check if your server minifies it and if that could be the issue.

I did not come from my server because when I use generate url from netlify it works when it’s the url set up with cloudfare it does not working.
I found a solution I disable speed > html and it works.
That’s not perfect but it’s ok.

That would hint at the HTML minification being the issue.

yes because now it works
for info my env is: gatsby (react) + netlify

This topic was automatically closed after 14 days. New replies are no longer allowed.