ReferenceError: __webpack_require__ is not defined

@Destiner
tl:dr; uBlock origin Chrome Ext seems to be the cause for me

<<<
I had the same problem, restarted a project from a few months ago and also couldn’t remember having this issue. Spent hours trying things, I thought it might have to do with setting the NODE_ENV in Webpack config bc something changed on Netlify… like this

but then I noticed if I load the site in an Incognito window I don’t have the error. Narrowed it down to the uBlock origin Chrome Extension. I don’t know why it messes this up - if this is something I can prevent in some way in my code/project/Netlify settings.

Do you happen to have extensions that might be blocking scripts ?

I’m not sure this is a reasonable fix, but then again uOrigin does warn pple about breaking sites.
curious if there’s a way to break gracefully

2 Likes