Skip to content

beeebox/swr-discussion-1645

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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