You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit: I see you are aware of this. The reason is that the vue compiler doesn't know anything about these module declarations. You can provide that file as a 'global type file' to vue in Vue options, but it's a bit complex. How necessary is that to you?
Summary (generated):
Here is a brief summary in English:
Operating system: Darwin. Node version: 21.7.1. Nuxt version: 3.11.2.
A TypeScript file is created in the "types" folder, declaring a module "components/logo" and an interface "LogoProps".
Trying to import this type into a component results in the bug that only exported interfaces work, not declared modules.
There is no additional context or logs provided.
Environment
Reproduction
Create a typescript file in the "types" folder
"components.ts"
try to import the type into a component
"component.vue"
Describe the bug
It doesn´t seem to be possible, to add declared modules in a component. Only exported interfaces seems to be working fine.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: