mschwarzmueller / nextjs-course-code

Source code for my NextJS course (https://acad.link/nextjs)
1.43k stars 2.32k forks source link

useSWR issue #2 #22

Open Snyder4000 opened 2 years ago

Snyder4000 commented 2 years ago

I'm finding that, even though I've gone through the npm install swr command twice, I'm getting an error for ./pages/events/[..slug].js. The error says Attempted import error: 'useSWR' is not exported from 'swr' useSWR_error .

mumu-pika commented 1 year ago

Hi !Maybe the SWR documentation can help you!Thank you! https://swr.vercel.app/docs/getting-started image

I'm finding that, even though I've gone through the npm install swr command twice, I'm getting an error for ./pages/events/[..slug].js. The error says Attempted import error: 'useSWR' is not exported from 'swr' useSWR_error .