You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I throw it again from the onError handler, the vite dev server picks it up and gives an error response with the correct line numbers, suggesting that ssrFixStacktrace works when applied.
The text was updated successfully, but these errors were encountered:
When an application uses an
onError
handler, the stack trace lines are incorrect. This is typically remedied withvite.ssrFixStacktrace
, however as the viteserver
(https://github.com/honojs/vite-plugins/blob/main/packages/dev-server/src/dev-server.ts#L67) is not passed through the environment or context, it seems unreachable within an application hono handler.If I throw it again from the
onError
handler, the vite dev server picks it up and gives an error response with the correct line numbers, suggesting thatssrFixStacktrace
works when applied.The text was updated successfully, but these errors were encountered: