Skip to content

Cannot install theme with pnpm #204

@gamberoillecito

Description

@gamberoillecito

Describe the bug
When installing a newly generated theme with the command copied from the tweakcn website, the following error appears:

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Invalid configuration found in C:\Users\...\my-app/components.json.

To Reproduce
Steps to reproduce the behavior:

  1. Run pnpm dlx shadcn@latest add https://tweakcn.com/r/themes/cmcnmybji000105lb79e1druu
  2. Select y when prompted You are about to install a new style. Existing CSS variables and components will be overwritten. Continue?

Expected behavior
The theme should be installed or, at least, a clearer cause of the error should be given.
explain your problem.

Additional context

My current components.json is the following:

{
	"$schema": "https://shadcn-svelte.com/schema.json",
	"tailwind": {
		"css": "src\\app.css",
		"baseColor": "slate"
	},
	"aliases": {
		"components": "$lib/components",
		"utils": "$lib/utils",
		"ui": "$lib/components/ui",
		"hooks": "$lib/hooks",
		"lib": "$lib"
	},
	"typescript": true,
	"registry": "https://shadcn-svelte.com/registry"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions