-
Notifications
You must be signed in to change notification settings - Fork 74
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
[vite:dts] Internal Error: getResolvedModule() could not resolve module name #242
Comments
Since the upgrade we had an error during the types rollups, please see qmhc/vite-plugin-dts#242.
Since the upgrade we had an error during the types rollups, please see qmhc/vite-plugin-dts#242.
Getting the same error. It seems like the resolution of |
Getting same error. vite v4.4.3 building for production...
✓ 84 modules transformed.
[vite:dts] Start generate declaration files...
computing gzip size (1)...[vite:dts] Start rollup declaration files...
Analysis will use the bundled TypeScript version 5.0.4
[vite:dts] Internal Error: getResolvedModule() could not resolve module name "./lib/main"
/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/dist/rocket-ui-vue.d.ts:1:1
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
✓ built in 36.54s
error during build:
Error: Internal Error: getResolvedModule() could not resolve module name "./lib/main"
/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/dist/rocket-ui-vue.d.ts:1:1
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
at ExportAnalyzer._fetchSpecifierAstModule (/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:676:19)
at ExportAnalyzer.fetchAstModuleFromSourceFile (/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/@microsoft/api-extractor/lib/analyzer/ExportAnalyzer.js:112:65)
at AstSymbolTable.fetchAstModuleFromWorkingPackage (/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/@microsoft/api-extractor/lib/analyzer/AstSymbolTable.js:83:37)
at Collector.analyze (/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/@microsoft/api-extractor/lib/collector/Collector.js:155:51)
at Function.invoke (/Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/@microsoft/api-extractor/lib/api/Extractor.js:143:19)
at rollupDeclarationFiles (file:///Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/vite-plugin-dts/dist/index.mjs:250:28)
at Object.writeBundle (file:///Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/vite-plugin-dts/dist/index.mjs:881:13)
at async Promise.all (index 0)
at async PluginDriver.hookParallel (file:///Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/rollup/dist/es/shared/node-entry.js:25260:9)
at async file:///Users/gokhanozturk/Desktop/dev/labs/rocket-ui/node_modules/rollup/dist/es/shared/node-entry.js:26572:13
error Command failed with exit code 1. vite.config.ts import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
import dts from 'vite-plugin-dts';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
dts({
rollupTypes: true,
}),
vue(),
],
resolve: {
alias: {
'@': resolve(__dirname, 'src/'),
},
},
build: {
lib: {
entry: resolve(__dirname, 'lib/main.ts'),
name: 'RocketUIVue',
fileName: 'rocket-ui-vue',
},
rollupOptions: {
external: ['vue'],
},
},
}); Reproduction: https://github.com/Teknasyon/rocket-ui |
This is still a problem in |
@martindzejky Hi, you can create a new issue with minimun reproduction to report the problem. |
Yep, will do. 👍 I figured out what the problem is. |
Describe the bug
Since the upgrade to version
3.x.x
we are facing the following error when settingsrollupTypes: true
:It works perfectly with the version
2.3.0
.Reproduction
https://github.com/openfun/cunningham/tree/6ffb537cd0ccc9aa077163021cb31b8055f51a7a/packages/react
Steps to reproduce
System Info
Validations
The text was updated successfully, but these errors were encountered: