We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vetur: Restart VLS
If we define a component used by App.vue with a prop typed as:
App.vue
props: { user: Object as PropType<UserModel>, },
then VTI (0.0.15) throws:
File : /Users/ced-pro/Code/test/vue-cli-tests/template-typechecking/src/App.vue Error: Cannot find name 'UserModel'.
This is reproducible in a bare CLI project with TS enabled:
npx @vue/cli@ create vue-integration -m yarn --inlinePreset '{"useConfigFiles": true,"plugins": {"@vue/cli-plugin-typescript": {"classComponent": false},"vue-cli-plugin-vue-next": {}}}'
In the generated project, update HelloWorld.vue to have a user prop as above, then run vti in the project.
HelloWorld.vue
user
You can check out cexbrayat/template-typechecking#1 and run yarn vti for a quicker repro.
yarn vti
The text was updated successfully, but these errors were encountered:
Fixed when #2344 solved
Sorry, something went wrong.
No branches or pull requests
Vetur: Restart VLS
Info
Problem
If we define a component used by
App.vue
with a prop typed as:then VTI (0.0.15) throws:
Reproducible Case
This is reproducible in a bare CLI project with TS enabled:
In the generated project, update
HelloWorld.vue
to have auser
prop as above, then run vti in the project.You can check out cexbrayat/template-typechecking#1 and run
yarn vti
for a quicker repro.The text was updated successfully, but these errors were encountered: