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

node_modules 删掉重装 在执行yarn build:types 会疯狂报错 #26

Closed
hzh11012 opened this issue Apr 4, 2022 · 2 comments
Closed

Comments

@hzh11012
Copy link

hzh11012 commented Apr 4, 2022

No description provided.

@hzh11012
Copy link
Author

hzh11012 commented Apr 4, 2022

tsconfig.build.json中换成如下即可

{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true
},
"exclude": ["/tests/", "/demo/", "node_modules", "lib", "esm"]
}

@worldzhao
Copy link
Owner

时间久了依赖可能有问题了,换成 pnpm 处理了一下,然后 tsconfig.json 里加上 "skipLibCheck": true 应该就没问题了,感谢指出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants