Next.js Discord

Discord Forum

How to test error.tsx page?

Unanswered
Spectacled Caiman posted this in #help-forum
Open in Discord
Spectacled CaimanOP
I am on local development and environment and I want to test my error.tsx page. So I intentionally added exception:

// test error throw new Error('test error')

But this does not redirect me error page instead it just shows warning in bottom left

1 Reply