Error when trying to install shadcn on my repo
Answered
Netherland Dwarf posted this in #help-forum
Netherland DwarfOP
Hi, here is the error code I have
This is triggered by importing the button and placing it inside a component.
./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 again1 Reply
Seems like failed to install clsx, you can run
npm install clsx and try againAnswer