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

chore: pnpm tsc #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

chore: pnpm tsc #17

wants to merge 1 commit into from

Conversation

Wu-kung
Copy link
Contributor

@Wu-kung Wu-kung commented Dec 20, 2024

No description provided.

Comment on lines +5 to +12
"paths": {
"@": ["./src"],
"@/*": ["./src/*"],
"react": ["./node_modules/@types/react"],
"react-dom": ["./node_modules/@types/react-dom"],
"@tanstack/react-router": [
"./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@tanstack/react-router"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些在 .tnf/tsconfig.json 里应该有的,为啥需要重复配置?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

即使继承了框架默认的 tsconfig 配置,但 antd 中的一些 Card、Result 组件依旧会抛TS错:JSX element type 'xx' does not have any construct or call signatures. 所以进行了 覆盖。

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

Successfully merging this pull request may close these issues.

3 participants