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

Can't generate emit functions type when build a .vue file in version 4.x.x #414

Open
3 tasks done
ja-plus opened this issue Feb 20, 2025 · 2 comments
Open
3 tasks done

Comments

@ja-plus
Copy link

ja-plus commented Feb 20, 2025

Describe the bug

Image

version 4.x.x will remove all the emit type definition. That's not good
above image shows : left part is built by version 4.3.0, right part is built by 3.9.1.

Reproduction

no

Steps to reproduce

No response

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (4) x64 Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
    Memory: 761.59 MB / 7.99 GB
  Binaries:
    Node: 18.16.0 - D:\ThsSoftware\nodejs1816_ths\ths\node.EXE
    npm: 8.19.4 - D:\ThsSoftware\nodejs1816_ths\ths\npm.CMD
    pnpm: 8.14.3 - D:\ThsSoftware\nodejs1816_ths\ths\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (133.0.3065.69)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-vue: ^5.1.4 => 5.1.4
    vite: ^5.4.10 => 5.4.10
    vite-plugin-dts: 4.3.0 => 4.3.0

Validations

@ja-plus
Copy link
Author

ja-plus commented Feb 21, 2025

I've comment some emits type.
I found if the emits type definition more than 8, The build result will change to:

[x: `on${Capitalize<any>}`]: ...

@qmhc
Copy link
Owner

qmhc commented Feb 26, 2025

Could you try the latest version of plugin?

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