相关平台
微信小程序
小程序基础库: 2.19.4
使用框架: React
复现步骤
1、安装微信小程序组件库tdesign-miniprogram
https://blog.csdn.net/cym2217348/article/details/128909960
2、在页面中引入
2.1 在json文件中引入组件,如:"t-button": "tdesign-miniprogram/button/button"
2.2 在wxml中使用组件,如: 保存
期望结果
正常转换
实际结果
转换报错
环境信息
$ taro info
👽 Taro v3.6.6
Taro CLI 3.6.6 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 16.19.1 - D:\software\DevEco\nodeJs16\node.EXE
npm: 8.19.3 - D:\software\DevEco\nodeJs16\npm.CMD
npmPackages:
@tarojs/cli: 3.6.6 => 3.6.6
@tarojs/components: 3.6.6 => 3.6.6
@tarojs/helper: 3.6.6 => 3.6.6
@tarojs/plugin-framework-react: 3.6.6 => 3.6.6
@tarojs/plugin-platform-alipay: 3.6.6 => 3.6.6
@tarojs/plugin-platform-h5: 3.6.6 => 3.6.6
@tarojs/plugin-platform-jd: 3.6.6 => 3.6.6
@tarojs/plugin-platform-qq: 3.6.6 => 3.6.6
@tarojs/plugin-platform-swan: 3.6.6 => 3.6.6
@tarojs/plugin-platform-tt: 3.6.6 => 3.6.6
@tarojs/plugin-platform-weapp: 3.6.6 => 3.6.6
@tarojs/react: 3.6.6 => 3.6.6
@tarojs/runtime: 3.6.6 => 3.6.6
@tarojs/shared: 3.6.6 => 3.6.6
@tarojs/taro: 3.6.6 => 3.6.6
@tarojs/webpack5-runner: 3.6.6 => 3.6.6
babel-preset-taro: 3.6.6 => 3.6.6
eslint-config-taro: 3.6.6 => 3.6.6
react: ^18.0.0 => 18.2.0
4条答案
按热度按时间wlp8pajw1#
t8e9dugd2#
更新复现步骤中2.2 在wxml中使用组件,如: 保存
u3r8eeie3#
这儿的路径应该是需要去node_modules中去查找
fykwrbwg4#
请问你后来成功用上tdesign的组件了吗?