Returning {notFound: true}
in a page's getServerSideProps
in Next.js while using Yarn 2 results in the page never loading.
- Node 15.13.0
- Yarn 1.22.10
- Clone this
- Run
yarn install
- Run
yarn run dev
- Navigate to http://localhost:3000/test which should show the Next.js 404 page, which is expected
- Stop the server
- Run
yarn set version berry
- Run
yarn install
- Run
yarn run dev
- Navigate to http://localhost:3000/test will hang forever and maybe show Webpack errors on the console