Next.js Discord

Discord Forum

How do you run Vercel's SWR repo?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I've managed to download https://github.com/vercel/swr onto my PC and am unable to run the examples provided here. I'm seeing that I have to use 'pnpm' to execute a build script, but I'm not sure how exactly I can go to test the examples and tinker with them.

2 Replies

Transvaal lionOP
!help
Transvaal lionOP
I will answer this question for those that may be perhaps interested. After downloading the repo onto your directory, change directory into the example of your choosing. Once there, run 'npm run dev' and it should be able to run.

I also ran pnpm at the swr-vercel root directory.