PrimeOne Theme v4: Typescript error Could not find a declaration file for module 'primevue/themes/primeone'
and aura theme
#5521
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the
PrimeOne
theme with primevue4.0.0-beta.1
and following the documentation here, I get several typescript errors:Actually,
node_modules\primevue\themes\index.d.ts
is empty.For
node_modules\primevue\themes\primeone\index.cjs.js
I am not sure if it is correct that thecjs.js
is "used" as there is also anindex.esm.js
in the same folder which does not seem to be used.Reproducer
https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-3mcqk5?file=src%2Fmain.ts
PrimeVue version
4.0.0-beta.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
// Also see the linked Stackblitz repro - in
main.ts
the editor highlights line 3-5 with the reported errors.npx tsc
Expected behavior
No typescript compile errors occur, types are correct.
The text was updated successfully, but these errors were encountered: