Open some-user123 opened 2 months ago
I am encountering a similar issue. When I disable strictTemplates, type checking for PrimeVue components no longer works. Is there a workaround to enable type checking for PrimeVue components without having to enable strictTemplates, since enabling it causes other issues?
Got this resolved The issue occurred when I set autoImport (autoImport of primevue components) to false and tried to use primevue components without manually importing it. Working fine with trictTemplates enabled
Describe the bug
To make use of type checking in the template, you have to enable
vueCompilerOptions.strictTemplates
intsconfig.json
.Primevue components, e.g.
<Button>
are not registered properly and thus cause type errors like this:Reproducer
https://stackblitz.com/edit/nuxt-starter-wzq5r2
PrimeVue version
4.0.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
npm run install
npm run typecheck
Expected behavior
Should pass without errors.