It took me a while to narrow this down from the project, but eventually I came to realize that this library's update is what triggered the errors. I'm guessing that it's related to the vue language server, but no sure what exactly.
In general terms, when updating to v2.1.X a TS2307 error starts showing up for every vue file. I have provided a minimum reproduction, which is basically my project trimmed
Describe the bug
It took me a while to narrow this down from the project, but eventually I came to realize that this library's update is what triggered the errors. I'm guessing that it's related to the vue language server, but no sure what exactly.
In general terms, when updating to v2.1.X a TS2307 error starts showing up for every vue file. I have provided a minimum reproduction, which is basically my project trimmed
Reproduction
https://github.com/auirarrazaval/vite-plugin-dts-build-error-repr
Steps to reproduce
Notice that the build goes through. Also note that the
vue-tsc
command runs with no issues, but the tsc error shows up when buildingIf you downgrade vite-plugin-dts to @4.0.3, the error doesn't show up:
System Info
Validations