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

Vite Vue - error TS4023: Exported variable 'X' has or is using name 'ComponentModellessBinds' from external module "./node_modules/vee-validate/dist/vee-validate" but cannot be named #4478

Closed
1 of 5 tasks
s3bul opened this issue Sep 19, 2023 · 1 comment

Comments

@s3bul
Copy link

s3bul commented Sep 19, 2023

What happened?

With package vite-plugin-dts and when I use defineComponentBinds I got error after run vite build

error TS4023: Exported variable 'X' has or is using name 'ComponentModellessBinds' from external module "./node_modules/vee-validate/dist/vee-validate" but cannot be named

Reproduction steps

  1. Create project vite vue-ts
  2. Install vite-plugin-dts and vee-validate
  3. Use defineComponentBinds for validation
  4. Run vite build

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/vitejs-vite-tfcbfi?file=src%2Fstore%2FloginStore.ts

Code of Conduct

@logaretm
Copy link
Owner

This is mostly because the new types aren't exported. Will export them in the next patch.

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