This repo reproduces a bug introduced in Next.js v9.0.6 and is unfixed in 9.1.1 The bug appears when you try to include files from outside the main next.js project folder
- Clone the repo
cd
into[project]/app
- Run
yarn
- Run
yarn dev
- Load the page and see everything is working nicely
- Kill the dev server
- Run
yarn add next@9.0.6
- Run
yarn dev
- Load the page and see the
Invalid hook call
error