Next.js Discord

Discord Forum

Module not found: Can't resolve 'fs' - only when putting "use client"

Unanswered
Bigeye scad posted this in #help-forum
Open in Discord
Bigeye scadOP
I get this error Module not found: Can't resolve 'fs' when trying to add "use client" to a component. I have no idea why since I am not using the file system... but I need client component in order for using useRouter

2 Replies

Show the code