Skip to content

[bug]: sidebar cn import incorrect #7546

Open
@lukedukeus

Description

@lukedukeus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions