taro
taro copied to clipboard
[Bug]: Could not find a declaration file for module @tarojs/extend
请先确认
- [x] 我已搜索并确定这个提交不是重复的
相关平台
- [x] 所有小程序
- [ ] 微信小程序
- [ ] 支付宝小程序
- [ ] 百度小程序
- [ ] 字节跳动小程序
- [ ] QQ 轻应用
- [ ] 京东小程序
- [ ] 快应用平台(QuickApp)
- [x] Web 平台(H5)
- [ ] 移动端(React-Native)
- [ ] 鸿蒙(harmony)
小程序基础库版本
4.1.1
使用框架
React
问题描述
在tsx 文件中 使用文档方式引入 https://docs.taro.zone/docs/jquery-like#width 报错如下。 Could not find a declaration file for module @tarojs/extend
复现链接
https://github.com/trionesdev/triones-antd-taro/blob/develop/packages/antd-taro-react/src/SideBar/side-bar.tsx
复现步骤
引入报错 缺失 types
环境信息
👽 Taro v4.0.4
Taro CLI 4.0.4 environment info:
System:
OS: macOS 15.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.17.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.2 - /usr/local/bin/npm
npmPackages:
@tarojs/cli: 4.1.1 => 4.1.1
@tarojs/components: 4.1.1 => 4.1.1
@tarojs/helper: 4.1.1 => 4.1.1
@tarojs/plugin-framework-react: 4.1.1 => 4.1.1
@tarojs/plugin-html: ^4.1.1 => 4.1.1
@tarojs/plugin-platform-alipay: 4.1.1 => 4.1.1
@tarojs/plugin-platform-h5: 4.1.1 => 4.1.1
@tarojs/plugin-platform-jd: 4.1.1 => 4.1.1
@tarojs/plugin-platform-qq: 4.1.1 => 4.1.1
@tarojs/plugin-platform-swan: 4.1.1 => 4.1.1
@tarojs/plugin-platform-tt: 4.1.1 => 4.1.1
@tarojs/plugin-platform-weapp: 4.1.1 => 4.1.1
@tarojs/react: 4.1.1 => 4.1.1
@tarojs/runtime: 4.1.1 => 4.1.1
@tarojs/shared: 4.1.1 => 4.1.1
@tarojs/taro: 4.1.1 => 4.1.1
@tarojs/taro-loader: 4.1.1 => 4.1.1
@tarojs/webpack5-runner: 4.1.1 => 4.1.1
babel-preset-taro: 4.1.1 => 4.1.1
eslint-config-taro: 4.1.1 => 4.1.1
react: ^18.0.0 => 18.3.1
贡献代码
- [ ] 我愿意修复这个错误