-
Notifications
You must be signed in to change notification settings - Fork 1k
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
v4.0.0-beta3: ../primevue/themes/index.d.ts' is not a module when writing and building the app. #5749
Comments
Thanks a lot! A stackblitz link really helps us a lot. |
Hi @mertsincan @44m0n I think this is just the same issue as #5521 and #5615 . Edit: |
Sorry for the confusion! I set a new milestone for them. I'll check and get back to you. |
For now, could you please try |
Thanks @mertsincan , for now I just ignored this error using // @ts-expect-error Remove once types are fixed
import { definePreset } from 'primevue/themes' but that's obviously not a good "solution" you want to have in your code 😃 |
Describe the bug
When using
definePreset
we get this warning in vscode:File '/ProjectPath.././node_modules/primevue/themes/index.d.ts' is not a module.ts(2306)
. If we ignore the warning this works in development environment. If we're trying to build the app we get this error:src/main.ts(8,30): error TS2306: File '/opt/buildhome/repo/node_modules/primevue/themes/index.d.ts' is not a module.
I didn't find any workaround yet. I can't create a reproducer right now, I will try to add it later. StackBlitz cannot process my request at the moment.
Reproducer
https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-asdii5?file=src%2Fmain.ts (Made by @sceee. Thank you!)
PrimeVue version
4.0.0-beta3
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
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: