Skip to content

[bug]: sidebar cn import incorrect #7546

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

Open
2 tasks done
lukedukeus opened this issue Jun 5, 2025 · 0 comments · May be fixed by #7547
Open
2 tasks done

[bug]: sidebar cn import incorrect #7546

lukedukeus opened this issue Jun 5, 2025 · 0 comments · May be fixed by #7547
Labels
bug Something isn't working

Comments

@lukedukeus
Copy link

Describe the bug

I have the following in my components.json:

{
	"$schema": "https://ui.shadcn.com/schema.json",
	"style": "default",
	"rsc": false,
	"tsx": true,
	"tailwind": {
		"config": "",
		"css": "src/styles.css",
		"baseColor": "neutral",
		"cssVariables": true,
		"prefix": ""
	},
	"aliases": {
		"components": "@/components",
		"utils": "@udecode/cn",
		"ui": "@/components/ui",
		"lib": "@/utils",
		"hooks": "@/hooks"
	},
	"iconLibrary": "lucide"
}

however, the sidebar component still imports cn from components:

import { cn } from "@/components/shadcn/utils"

when it should be:

import { cn } from "@udecode/cn";

like all the other components

Affected component/components

sidebar

How to reproduce

See above

Codesandbox/StackBlitz link

No response

Logs

System Info

N/A

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@lukedukeus lukedukeus added the bug Something isn't working label Jun 5, 2025
@lukedukeus lukedukeus linked a pull request Jun 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant