rsnext/test/integration/server-side-dev-errors/pages/uncaught-empty-exception.js
Hannes Bornö 2e135346cf
Don't convert error to string (#36804)
Stack trace disappears when error is converted to string.
I changed the types in `log.ts` to match `console.log`/`console.error`/`console.warn`.

fixes #31591
2022-05-11 17:02:15 +00:00

12 lines
205 B
JavaScript

export default function Page() {
return <p>getServerSideProps page</p>
}
export async function getServerSideProps() {
setTimeout(() => {
throw new Error()
}, 10)
return {
props: {},
}
}