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
[vite:dts] Internal Error: getResolvedModule() could not resolve module name "./components/Entry1.vue"
/home/projects/vitejs-vite-izfn7d/dist/Entry1.vue.d.ts:1:1
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
✓ built in 3.02s
error during build:
Error: Internal Error: getResolvedModule() could not resolve module name "./components/Entry1.vue"
/home/projects/vitejs-vite-izfn7d/dist/Entry1.vue.d.ts:1:1
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
at new InternalError (/home/projects/vitejs-vite-izfn7d/node_modules/@rushstack/node-core-library/lib/InternalError.js:24:9)
at ExportAnalyzer._fetchSpecifierAstModule (/home/projects/vitejs-vite-izfn7d/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:676:19)
at ExportAnalyzer.fetchAstModuleFromSourceFile (/home/projects/vitejs-vite-izfn7d/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:112:65)
at AstSymbolTable.fetchAstModuleFromWorkingPackage (/home/projects/vitejs-vite-izfn7d/node_modules/@microsoft/api-extractor/lib/analyzer/AstSymbolTable.js:83:37)
at Collector.analyze (/home/projects/vitejs-vite-izfn7d/node_modules/@microsoft/api-extractor/lib/collector/Collector.js:155:51)
at Extractor.invoke (/home/projects/vitejs-vite-izfn7d/node_modules/@microsoft/api-extractor/lib/api/Extractor.js:143:19)
at rollupDeclarationFiles (/home/projects/vitejs-vite-izfn7d/node_modules/vite-plugin-dts/dist/index.mjs:266:53)
at Object.writeBundle (/home/projects/vitejs-vite-izfn7d/node_modules/vite-plugin-dts/dist/index.mjs:891:15)
at async PluginDriver.hookParallel (/home/projects/vitejs-vite-izfn7d/node_modules/rollup/dist/es/shared/node-entry.js:25497:9)
Entry1.vue.d.ts :
export * from './components/Entry1.vue'
Main problem: the dist folder do not have ./components/Entry1.vue file. It should be in src folder.
Describe the bug
This example project build correctly now. However, an error occurs if
cleanVueFileName: true,
invite.config.ts
is uncommented.Error message:
Entry1.vue.d.ts :
Main problem: the dist folder do not have
./components/Entry1.vue
file. It should be in src folder.Reproduction
https://stackblitz.com/edit/qmhc-vite-plugin-dts-276?file=vite.config.ts
Steps to reproduce
run
npm install
run
vite build
uncomment
cleanVueFileName: true,
invite.config.ts
run
vite build
System Info
Validations
The text was updated successfully, but these errors were encountered: