My error.js file within route segment not working anymore. I see the default Next.js crash screen instead of fallback Page. File content is as described in Next.js 13 App Router documentation. I already deleted .next folder to get rid of cache. Any other idea?
import { useEffect } from 'react'
export default function Error({ error, reset }) {
useEffect(() => {
// Log the error to an error reporting service
console.error(error)
}, [error])
return (
<div>
<h2>Something went wrong!</h2>
<button
onClick={
// Attempt to recover by trying to re-render the segment
() => reset()
}
>
Try again
</button>
</div>
)
}```
