Demonstrates a bug where an error is thrown at the top level of a page on the client side. _error.js is rendered, but does not have getInitialProps invoked, so information about the error is not availible to it as it normally would. To reproduce:
- Clone this project and
yarn install,yarn build,yarn start(custom_error.jsis only used in a production build, soyarn devwon't work) - Open
localhost:3000and check the browser console
ACTUAL: Just the error is logged to the console
EXPECTED: We should see the error then the log from _error.js's getInitialProps: "This will not log, because it was not run"