Module not found: Can't resolve 'fs' - only when putting "use client"
Unanswered
Bigeye scad posted this in #help-forum
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
useRouter2 Replies
@Bigeye scad 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`
European sprat
Something else in your client component is attempting to use the fs package which doesn't work on the client
Show the code