Failed preview deployments since yesterday [webpack]

I’m having issues with my preview deployment. I’m getting a consistent 500 errors…. they do vary, here’s some examples…

Error: require() of ES Module /var/task/node_modules/parse5/dist/index.js from /var/task/node_modules/jsdom/lib/jsdom/browser/parser/html.js not supported.

Module build failed: UnhandledSchemeError: Reading from "node:path" is not handled by plugins (Unhandled scheme).

node:child_process
Module build failed: UnhandledSchemeError: Reading from "node:child_process" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

This started yesterday during the outages but waited until today to redeploy. The build works fine locally but staging is not happy.

Things I’ve tried:

  • Removing node_modules and .next then yarn + build + start locally. All fine, no errors.
  • Redeploying a previously known good branch
  • Reverting code to known good (previously deployed OK) state

Example deployment ID: 8w5nF8LX6Ps9hoyZ5HRtucGWASB2

Any advice appreciated

Sometimes it builds… but even when it does, it throws a 500 on the front end.

OK… this has been very frustrating but it seems to now be deploying (with no code changes)… I think it may have been related to an issue with posthog-js.

Please close this and I will return if I have more info! :slight_smile:

1 Like

Thank you for coming back and sharing that it’s working for you now! I suspect this has been because of the Monday incident.

Do let us know if any other issues come up though!

1 Like

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