primevue-nuxt-module icon indicating copy to clipboard operation
primevue-nuxt-module copied to clipboard

fix: resolve naming conflicts

Open rxMATTEO opened this issue 6 months ago • 0 comments

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

rxMATTEO avatar Aug 02 '24 08:08 rxMATTEO