We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
allowArbitraryExtensions
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
2.2.10
1.100
main branch
>=5.0
tsconfig.json
WithType.vue
WithType.d.vue.ts
import type { X } from './WithType.vue'
Language tools should import the type of *.vue from *.d.vue.ts as the first choice because allowArbitraryExtensions is enabled
*.vue
*.d.vue.ts
Language tools try to import the type from the script block of *.vue and got nothing
https://github.com/Teages/vue-allow-arbitrary-extensions
nuxt/module-builder#597 unjs/mkdist#270 unjs/mkdist#268 (comment) https://github.com/vuejs/core/blob/v3.5.13/packages/compiler-sfc/src/script/resolveType.ts#L1154
microsoft/TypeScript#50133
vuejs/core#13301
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Vue - Official extension or vue-tsc version
2.2.10
VSCode version
1.100
Vue version
main branch
TypeScript version
>=5.0
Steps to reproduce
tsconfig.json
WithType.vue
,WithType.d.vue.ts
, add a type export inWithType.d.vue.ts
import type { X } from './WithType.vue'
, it throws a error when vue language tools enabledWhat is expected?
Language tools should import the type of
*.vue
from*.d.vue.ts
as the first choice becauseallowArbitraryExtensions
is enabledWhat is actually happening?
Language tools try to import the type from the script block of
*.vue
and got nothingLink to minimal reproduction
https://github.com/Teages/vue-allow-arbitrary-extensions
Any additional comments?
nuxt/module-builder#597
unjs/mkdist#270
unjs/mkdist#268 (comment)
https://github.com/vuejs/core/blob/v3.5.13/packages/compiler-sfc/src/script/resolveType.ts#L1154
microsoft/TypeScript#50133
vuejs/core#13301
The text was updated successfully, but these errors were encountered: