Shadcn DropdownMenu - Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps

Local is building and starting without any issues. This only happens on Vercel's deployment Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps & RefAttributes<HTMLDivElement>, "ref"> & { inset?: boolean | undefined; }'
Running "bun run build"
--
01:09:07.074 | $ next build
01:09:07.993 | Next.js 14.0.4
01:09:07.994 |  
01:09:07.995 | Creating an optimized production build ...
01:09:21.783 | Compiled successfully
01:09:21.784 | Linting and checking validity of types ...
01:09:28.103 | Failed to compile.
01:09:28.103 |  
01:09:28.104 | ./src/components/ui/dropdown-menu.tsx:26:6
01:09:28.104 | Type error: Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps & RefAttributes<HTMLDivElement>, "ref"> & { inset?: boolean \| undefined; }'.
01:09:28.105 |  
01:09:28.105 | 24 \| inset?: boolean;
01:09:28.105 | 25 \| }
01:09:28.106 | > 26 \| >(({ className, inset, children, ...props }, ref) => (
01:09:28.106 | \| ^
01:09:28.106 | 27 \| <DropdownMenuPrimitive.SubTrigger
01:09:28.106 | 28 \| ref={ref}
01:09:28.106 | 29 \| className={cn(
01:09:28.179 | error: script "build" exited with code 1 (SIGHUP)
01:09:28.183 | Error: Command "bun run build" exited with 1
Running "bun run build"
--
01:09:07.074 | $ next build
01:09:07.993 | Next.js 14.0.4
01:09:07.994 |  
01:09:07.995 | Creating an optimized production build ...
01:09:21.783 | Compiled successfully
01:09:21.784 | Linting and checking validity of types ...
01:09:28.103 | Failed to compile.
01:09:28.103 |  
01:09:28.104 | ./src/components/ui/dropdown-menu.tsx:26:6
01:09:28.104 | Type error: Property 'className' does not exist on type 'Omit<DropdownMenuSubTriggerProps & RefAttributes<HTMLDivElement>, "ref"> & { inset?: boolean \| undefined; }'.
01:09:28.105 |  
01:09:28.105 | 24 \| inset?: boolean;
01:09:28.105 | 25 \| }
01:09:28.106 | > 26 \| >(({ className, inset, children, ...props }, ref) => (
01:09:28.106 | \| ^
01:09:28.106 | 27 \| <DropdownMenuPrimitive.SubTrigger
01:09:28.106 | 28 \| ref={ref}
01:09:28.106 | 29 \| className={cn(
01:09:28.179 | error: script "build" exited with code 1 (SIGHUP)
01:09:28.183 | Error: Command "bun run build" exited with 1
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server