You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a library project with vite, vite-plugin-dts, vue and pinia. The project has one Vue template, but that is for testing only and doesn't need to be exported. The library will be used in other Vue projects.
It worked fine with vite-plugin-dts until 3.7.3, but since 3.8.0 the build throws TypeScript errors:
src/lib/counter.ts:1:31 - error TS2792: Cannot find module 'vue'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
1 import { ref, computed } from 'vue'
~~~~~
src/lib/counter.ts:2:29 - error TS2792: Cannot find module 'pinia'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2 import { defineStore } from 'pinia'
~~~~~~~
✓ 2 modules transformed.
Describe the bug
I have a library project with vite, vite-plugin-dts, vue and pinia. The project has one Vue template, but that is for testing only and doesn't need to be exported. The library will be used in other Vue projects.
It worked fine with vite-plugin-dts until 3.7.3, but since 3.8.0 the build throws TypeScript errors:
Reproduction
https://github.com/jashaj/vue-dts-module-error
Steps to reproduce
npm ci
npm run build
System Info
Validations
The text was updated successfully, but these errors were encountered: