We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前自动导入的逻辑是需要访问页面才能生成对应的声明,这样就会导致在 build 的时候会报错。
如果能在 build 之前调用一下下生成导入就不会有这个问题。
"scripts": { "build": "auto-import && vue-tsc --noEmit && vite build", }
No response
The text was updated successfully, but these errors were encountered:
这是 vue-tsc --noEmit 检查出的问题,我理解 unplugin-auto-import 依赖于 vite 的模块扫描,不运行 vite 就没法生成类型文件吧?所以我直接都是构建时删掉类型检查,需要时(提交代码)再自动检查类型😂。
vue-tsc --noEmit
unplugin-auto-import
vite
Sorry, something went wrong.
同样的需求, 希望添加单独生成的命令, 比如这种命令, 能否type-check 通过, 完全依赖于 build 触发d.ts 生成的时机, 很容易导致cicd失败 "build:prod": "pnpm i && run-p type-check "build-only {@}" -- --mode prod"
No branches or pull requests
Clear and concise description of the problem
目前自动导入的逻辑是需要访问页面才能生成对应的声明,这样就会导致在 build 的时候会报错。
Suggested solution
如果能在 build 之前调用一下下生成导入就不会有这个问题。
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: