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

fix: resolve naming conflicts #74

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rxMATTEO
Copy link

@rxMATTEO rxMATTEO commented Aug 2, 2024

Hey 🖐.
When i worked with on custom passthrough preset, i've noticed, when i passed those options in my nuxt.config:

    importTheme: { from: '@/primevue-theme/index.mjs' },
    importPT: { from: '@/primevue-theme/passthrough.mjs', as: 'pt' },

it's caused an error, because in your module registration you already provided that name, so it's throwing an ReferenceError, because pt is already declared.
So i used the object spread to fix it.

Here is little demo of bug: https://codesandbox.io/p/github/rxMATTEO/primevue-naming-bug/main

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

Successfully merging this pull request may close these issues.

1 participant