agmmnn / tauri-ui

🦀 Create modern Tauri desktop apps in just a few simple steps with shadcn/ui. React, Next.js, Sveltekit.
https://npmjs.com/package/create-tauri-ui
MIT License
1k stars 64 forks source link

fix: classname does not exists in src/components/ui/dialog.tsx and .../ui/alert-dialog.tsx #17

Open marcelldac opened 1 week ago

marcelldac commented 1 week ago

How to reproduce?

Command: npm create tauri-ui

-> Next.js

Command: npm install && npm run build

Output:

> npm run build

> tauri-ui@0.1.0 build
> next build

 ✓ Creating an optimized production build
 ✓ Compiled successfully
   Linting and checking validity of types  .Failed to compile.

./src/components/ui/dialog.tsx:14:3
Type error: Property 'className' does not exist on type 'DialogPortalProps'.

Merge branch 'main' of https://github.com/marcelldac/tauri-ui
  12 |
  13 | const DialogPortal = ({
> 14 |   className,
     |   ^
  15 |   ...props
  16 | }: DialogPrimitive.DialogPortalProps) => (
  17 |   <DialogPrimitive.Portal className={cn(className)} {...props} />

I just deleted classname of this errors

How do i make this works?

AldonahZero commented 1 week ago

Will removing the classname directly have any impact?

marcelldac commented 13 minutes ago

If I run the application, it returns this error.