adrianhajdin / zoom-clone

Learn to develop a professional enterprise-ready video conferencing app in hours using Next.js 14, Stream, and Tailwind CSS.
https://jsmastery.pro
905 stars 294 forks source link

Attempted import error: 'SWRConfig' is not exported from 'swr' (imported as 'SWRConfig'). #8

Closed Rahul4dev closed 4 months ago

Rahul4dev commented 5 months ago

Whenever I start the server, it gives this error.

error1

And on the terminal, I get this error,

errorInTerminal

Please resolve this error @adrianhajdin @TidbitsJS Thanks.

Satora1 commented 5 months ago

just copy Navbar component from repo and it will work , probably you miss spell sth like me i did it and it start working , i chechk swr files ( it took me a while) and the issue was in last file (navbar) so do it and all done XD

Satora1 commented 5 months ago

basically if you delate the it will work , there is some error in this component i dont know why but it work

navneetp1 commented 4 months ago

It's probably the import statement. SignedIn and UserButton components are to be imported from @clerk/nextjs and NOT from @clerk/clerk-react or any other source.

Rahul4dev commented 4 months ago

Yes, it's because of the import statement of SignIn and IserButton which was wrongly imported. It should be from @clerk/nextjs.

Thanks @navneetp1 and @Satora1