Skip to content
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

执行构建生成.d.ts时部分文件丢失 #230

Closed
WangMingHua111 opened this issue Aug 4, 2022 · 1 comment · Fixed by #235
Closed

执行构建生成.d.ts时部分文件丢失 #230

WangMingHua111 opened this issue Aug 4, 2022 · 1 comment · Fixed by #235
Assignees
Labels
bug Something isn't working

Comments

@WangMingHua111
Copy link
Contributor

WangMingHua111 commented Aug 4, 2022

packages/editor/dist/types/src/services/editor.d.ts 等声明文件未成功生成

image
@@

似乎是由于vite-plugin-dts的构建的过程中遇到了无法解析的类型错误,导致生成声明文件时被跳过。
通过在 packages\editor\vite.config.ts 配置文件中添加 skipDiagnostics: false, 配置后发现的确出现了超级多的错误信息
export default defineConfig({ plugins: [ dts({ outputDir: 'dist/types', include: ['src/**/*'], staticImport: true, insertTypesEntry: true, logDiagnostics: true, skipDiagnostics: false, }), vue(), ],

vite-plugin-dts 错误报告

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants