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
无
7.0.0
build 打包后没有生成lib/index.d.ts,只在各个组件的文件夹下生成了index.d.ts文件,导致在使用时,引入组件无法得到类型提示 打包后目录如下
tsconfig.declaration.json配置如下
{ "extends": "./tsconfig.json", "compilerOptions": { "declaration": true, "declarationDir": ".", "emitDeclarationOnly": true // 只发出声明 }, "include": ["es/**/*", "lib/**/*"], "exclude": ["node_modules", "**/test/**/*", "**/demo/**/*"] }
tsconfig.json
{ "compilerOptions": { "noImplicitAny": false, "strict": true, "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "sourceMap": true, "declaration": true, }, }
pnpm run build
No response
The text was updated successfully, but these errors were encountered:
顶,我也出现了。请问怎么解决呢
Sorry, something went wrong.
No branches or pull requests
Reproduction Link
无
Vant Version
7.0.0
Describe the Bug
build 打包后没有生成lib/index.d.ts,只在各个组件的文件夹下生成了index.d.ts文件,导致在使用时,引入组件无法得到类型提示

打包后目录如下
tsconfig.declaration.json配置如下
tsconfig.json
Reproduce Steps
pnpm run build
Device / Browser
No response
The text was updated successfully, but these errors were encountered: