Next.js Discord

Discord Forum

Error when trying to install shadcn on my repo

Answered
Netherland Dwarf posted this in #help-forum
Open in Discord
Netherland DwarfOP
Hi, here is the error code I have

./node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs
Module build failed: Error: ENOENT: no such file or directory, open 


This is triggered by importing the button and placing it inside a component.
js 
import {Button} from "@/components/ui/button";
<Button></Button>
Answered by fuma
Seems like failed to install clsx, you can run npm install clsx and try again
View full answer

1 Reply

Seems like failed to install clsx, you can run npm install clsx and try again
Answer