Skip to content

TypeScript 5/Vue 3.3.4 Support #7

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

Closed
zacharymartens opened this issue Jun 6, 2023 · 4 comments
Closed

TypeScript 5/Vue 3.3.4 Support #7

zacharymartens opened this issue Jun 6, 2023 · 4 comments

Comments

@zacharymartens
Copy link

Hi,

I am experiencing a type check error when running vue-tsc==1.6.5 on my project. It looks like it is caused by the latest @vue/tsconfig/tsconfig.dom.json which specifies moduleResolution: "bundler".

This issue seems to explain the underlying cause of the error.

The output from vue-tsc --noEmit:

Could not find a declaration file for module 'gitart-vue-dialog'. '.../node_modules/gitart-vue-dialog/dist/index.mjs' implicitly has an 'any' type.
  There are types at '.../node_modules/gitart-vue-dialog/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'gitart-vue-dialog' library may need to update its package.json or typings.

Thank you! This library is great.

@MichaelGitArt
Copy link
Member

@zacharymartens Hello, and thank you for the issue. Could you please provide some minimal reproduction? Repository on github or stakblitz?

@zacharymartens
Copy link
Author

Sure, here is a stackblitz based off of the default Vitejs template from their getting started page. If you open up the terminal and execute npm run build, you should get the previously mentioned error message during the vue-tsc typecheck.

The only changes made from the default template were adding the gitart-vue-dialog dependency to package.json and adding the import for it to App.vue.

@MichaelGitArt
Copy link
Member

@zacharymartens Thanks, please try [email protected]

@zacharymartens
Copy link
Author

Works like a charm. Thank you for the support and quick response!

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