Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 586 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 586 Bytes

The following error is thrown when trying to use a vanilla installation of next.js with the swr library and preact:

Screen Shot 2022-03-22 at 3 00 42 PM

To repro using Preact:

git clone git@github.com:kevlened/nextjs-preact-swr-repro.git
cd nextjs-preact-swr-repro
yarn
yarn dev

To see the expected behavior when using normal React:

git clone git@github.com:kevlened/nextjs-preact-swr-repro.git
cd nextjs-preact-swr-repro
git checkout react
yarn
yarn dev