kevlened / nextjs-preact-swr-repro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archiving, as a workaround is proposed here: preactjs/next-plugin-preact#53

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

About


Languages

Language:JavaScript 100.0%