Recently, all builds of the sites that I have on Netlify seem to render an error during runtime. The build process itself seems to be ok, but when I try to open the deployed site all I see is a white screen and “ReferenceError: __webpack_require__ is not defined
” in dev console.
My average project is a single-page Vue application. As I said, it happens to all of my projects that I deployed recently. I created a dummy Vue project (deployed) which does not work for me.
My deployment consists of Webpack and serving out of dist folder.
Few things that make this error frustrating:
- I can’t reproduce this error when building a site locally.
- I don’t remember changing anything on my side. One day a casual deployment just started to fail during runtime.
- Old deployments / projects are unaffected.
- I couldn’t reproduce on my phone. I also tried various “website checkers” which also work fine. Additionally, based on the thumbnail in the dashboard I can see that Netlify itself also doesn’t have any problems rendering my sites.
I kinda realize that this sounds like a problem on my side, but the fact that I didn’t change anything + old deployments work fine + local deployments work fine makes me wonder if there’s something. Specifically, what’s the difference between Netlify bundles vs mine that one is ok and another one is failing.