-
Notifications
You must be signed in to change notification settings - Fork 27
[bug]: Syntax error with every component #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
Noted, thanks! |
Seems like this is fixed in the docs now: https://shadcn-solid.com/docs/installation/solid-start @hngngn should this issue be closed? |
I think he's following this https://shadcn-solid.com/docs/installation/manual, and it doesn't have the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm sure this is a silly configuration issue on my end - but I've tried loads of things and cannot figure it out.
I've got a basic SolidJS application, with Firebase too, meaning I've got an index.html file in the root directory.
It has Tailwind installed too.
So far I've tried to import the Button and ComboBox components, but with both of them, I get issues, meaning that they cannot be used.
With the Button I get an issue with CVA:

And also the Button primitive:

And then on every instance of the ComboBox primitive, I get a similar issue:

Not really sure where to start with this - there are still some aspects of web dev I don't fully grasp, but I would expect this to work based on my setup.
I've followed the manual installation steps, so I have updated my tsconfig.json to have the @ directory.
My tailwind.config.cjs is configured correctly.
My app.css file is actually my index.css file, but that also has the same syntax as the installation instructions.
I also have a cn helper.
I'm using NPM rather than PNPM to install single components (npx shadcn-solid@latest add button VS pnpm dlx degit...), as the PNPM variant doesn't seem to work.
I'm kindof at a dead end with this. I could probably fix these individual components, but I don't want to have to fix a component every time I import it, so I'm hoping some configuration issue!
Error below from Vite:
Affected component/components
Button, Combobox, potentially more.
How to reproduce
Create a SolidJS TS app from the template.
Install Firebase & init.
Setup ShadCN prerequisites.
Install a component (such as a Button or Combobox).
Use the component. Build fails.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: