-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
taro4.0.4引入原生echarts-for-weixin失败 #16503
Comments
usingComponents 路径要填打包成dist文件以后的路径,而不能是原路径 |
解决了 |
This was referenced Sep 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 3.5.6
使用框架: React
复现步骤
①复制https://github.com/ecomfe/echarts-for-weixin的ec-canvas文件夹的内容到本地components下
②在分包的page.config.ts里面设置
export default {
usingComponents: {
// 定义需要引入的第三方组件
// 1. key 值指定第三方组件名字,以小写开头
// 2. value 值指定第三方组件 js 文件的相对路径
'ec-canvas': '../../../components/ec-canvas/ec-canvas',
},
}
③yarn dev:weapp
④报错component not found in the path: D:/lubanPro/weapp/dist/pages/components/ec-canvas/ec-canvas
期望结果
能成功使用组件
实际结果
报错component not found in the path: D:/lubanPro/weapp/dist/pages/components/ec-canvas/ec-canvas
环境信息
The text was updated successfully, but these errors were encountered: