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

无法引入 #138

Open
Yuni7 opened this issue Oct 12, 2023 · 1 comment
Open

无法引入 #138

Yuni7 opened this issue Oct 12, 2023 · 1 comment

Comments

@Yuni7
Copy link

Yuni7 commented Oct 12, 2023

环境:
"@hi-ui/classic-theme": "^4.1.0"
"@hi-ui/hiui": "^4.3.0"
"react": "^18.2.0"
typescript": "^4.4.2

node:16.15.1

问题:
create-react-app ts 创建出来的项目无法引入Theme
无法找到模块“@hi-ui/classic-theme”的声明文件。“c:/Code/Hycean/node_modules/@hi-ui/classic-theme/lib/index.js”隐式拥有 "any" 类型。
尝试使用 npm i --save-dev @types/hi-ui__classic-theme (如果存在),或者添加一个包含 declare module '@hi-ui/classic-theme'; 的新声明(.d.ts)文件ts(7016)

@zyprepare
Copy link
Contributor

该组件是基于js编写,目前没有类型定义文件

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