Next.js Discord

Discord Forum

Hello am getting the error with one of my hooks

Unanswered
Asian swamp eel posted this in #help-forum
Open in Discord
Asian swamp eelOP
My code is correct but am getting the error with the usePathname can someone assist me please

10 Replies

Original message was deleted
Asian swamp eelOP
That's screenshot of my code when i run the app am getting that error i was creating a sidebar of my application
and the use client is the first line right
Asian swamp eelOP
There's use client on the first line
wait its "use client" and not "use-client"
i didn't look close enough
Asian swamp eelOP
it's "use-client"
yeah remove the dash and it should work
Asian swamp eelOP
when i remove the dash
@riský yeah remove the dash and it should work
Asian swamp eelOP
Hello are you around ?
Asian swamp eelOP
``