After 4.2.X update i get TS2307: Cannot find module ... error on all my .vue files #384
Closed
3 tasks done
Labels
bug
Something isn't working
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 v4.2.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
System: OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish) CPU: (16) x64 AMD Ryzen 9 5900HS with Radeon Graphics Memory: 2.25 GB / 7.76 GB Container: Yes Shell: 5.8.1 - /usr/bin/zsh Binaries: Node: 20.16.0 - /tmp/xfs-47c61424/node Yarn: 4.4.1 - /tmp/xfs-47c61424/yarn npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm libraries should be the versions sin the package.json, as I updated it
Validations
The text was updated successfully, but these errors were encountered: