Next.js Discord

Discord Forum

can't use "use client" directive in my external npm package.

Unanswered
Brewer's Sparrow posted this in #help-forum
Open in Discord
Brewer's SparrowOP
I'm trying to use the "use client" directive in my external npm package and I get this error when using it in my nextjs project.

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.

0 Replies