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-tsc] .d.ts files are not emitted after upgrade from 0.33.9 #1669

Closed
Alexis2004 opened this issue Aug 3, 2022 · 2 comments
Closed

[vue-tsc] .d.ts files are not emitted after upgrade from 0.33.9 #1669

Alexis2004 opened this issue Aug 3, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Alexis2004
Copy link

I am developing a library of Vue components. To export type declarations during the build, we use the command vue-tsc --declaration --emitDeclarationOnly.

Everything worked well on vue-tsc@0.33.9. After upgrading to 0.34.1, no types are exported anymore, and there are no errors or warnings in the terminal. I observe the same behavior on the latest version of the library at the moment (0.39.4). I was unable to check the build for version 0.34.0, due to the previously fixed bug.

How to reproduce the issue:

  1. Checkout the demo repository git clone git@github.com:Alexis2004/vue-tsc-dts-issue.git.
  2. Execute command yarn install && yarn run dts in the project root.
  3. Make sure that the dist/ folder with .d.ts files is not created.
  4. Downgrade the vue-tsc library in the package.json file to version 0.33.9.
  5. Rerun command yarn install && yarn run dts.
  6. Make sure that the dist/ folder with .d.ts files appears in the project root.
@johnsoncodehk
Copy link
Member

You can remove "noEmitOnError": true to avoid the problem, emit is block by volar internal errors currently.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 3, 2022
@Alexis2004
Copy link
Author

Thank you very much! The proposed workaround with removing noEmitOnError helped me – now .d.ts files are generated successfully (I've tried to build using the latest vue-tsc version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants