Skip to content
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

vue shim declaration file missing? #14

Closed
wheatjs opened this issue Sep 17, 2020 · 4 comments
Closed

vue shim declaration file missing? #14

wheatjs opened this issue Sep 17, 2020 · 4 comments

Comments

@wheatjs
Copy link
Contributor

wheatjs commented Sep 17, 2020

It seems the vue-shims.d.ts is missing from this project. I cloned the repo using npx degit antfu/vitesse my-vitesse-app and opened up the project in a fresh vscode install with only the recommended extensions installed just to make sure it wasn't a problem with my VSCode install. I assume a shims file is needed for typescript to recognize .vue extensions

image

@wheatjs wheatjs changed the title vue shim deceleration file missing? vue shim declaration file missing? Sep 17, 2020
@antfu
Copy link
Member

antfu commented Sep 17, 2020

The shims are now auto-generated by @vuedx/typescript-plugin-vue with more accurate typing for each component

Can you try to install your deps and restart VS Code to see if it works?

https://github.com/antfu/vitesse/blob/aaedb2f9f1529688c7fb11fb12f912ffbd7ee5b4/tsconfig.json#L14

@wheatjs
Copy link
Contributor Author

wheatjs commented Sep 17, 2020

Hmm, no luck. I ran pnpm i and then restarted VS Code but still have the same error.

@wheatjs
Copy link
Contributor Author

wheatjs commented Sep 17, 2020

I should also note that I have tried this on both WSL(Ubuntu) and MacOS and get the same result for both.

@antfu antfu closed this as completed in 9fe77af Sep 21, 2020
@antfu
Copy link
Member

antfu commented Sep 21, 2020

Can confirm. Though I am not sure where the problem is. Adding back the shim as a workaround for now. Thanks a lot for helping to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants