Skip to content
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

TypeScript bug when updating from @primevue/themes to @primeuix/themes #45

Closed
BenJackGill opened this issue Feb 26, 2025 · 1 comment
Closed

Comments

@BenJackGill
Copy link

I recently upgraded a Vue project to primevue 4.3.1 and along with that I upgraded @primevue/themes to @primeuix/themes.

But it seems @primeuix/themes has a bug or is missing some types.

This was previously working with @primevue/themes imports but now it shows a TypeScript error with the drop in replacement of @primeuix/themes import.

import { definePreset } from '@primeuix/themes';
import Aura from '@primeuix/themes/aura';

export const preset = definePreset(Aura, {
  components: {
    card: {
      shadow: 'none', // <-- Error shows here: Object literal may only specify known properties, and 'shadow' does not exist in type 'CardDesignTokens' .ts(2353)
    },
  },
});
@mertsincan
Copy link
Member

Please try;

components: {
        card: {
            root: {
                shadow: 'none'
            }
        }
  }

Ref; https://github.com/primefaces/primeuix/blob/main/packages/themes/src/types/card/index.d.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants