Nuxt module: autoImport
logic inverted
#6187
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
With the following nuxt.config.ts, auto-imports are not generated:
Looking in
.nuxt/components.d.ts
, no PrimeVue components are registered.Now, set
autoImport: false
, and all the components appear in components.d.ts.This is due to this line here:
primevue/packages/nuxt-module/src/register.ts
Line 48 in 6e55ee9
The logic for registering the component with Nuxt is inverted.
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template
PrimeVue version
4.0.3
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: