preactjs / next-plugin-preact

Next.js plugin for preact X
394 stars 9 forks source link

Fails to render pages/_error when exception is thrown in CSR #35

Open wilsonpage opened 2 years ago

wilsonpage commented 2 years ago

Describe the bug When an exception is throw in the render phase of a clientside rendered page the Next.JS pages/_error fails to render. I'm unsure if this is a bug in next, preact or next-plugin-preact happy to post elsewhere if there's a better place.

To Reproduce

Steps to reproduce the behavior:

  1. Visit /
  2. Click link to render /failing
  3. Observe fails to JS console showing 5x render and exceptions

image

Expected behavior