Files
next.js/test/integration/render-error-on-module-error/pages/index.js

10 lines
167 B
JavaScript

if (typeof window !== 'undefined') {
throw new Error('fail module evaluation')
}
const Index = () => 'hi'
Index.getInitialProps = () => ({})
export default Index