老哥,VM10352:1 jsEnginScriptError Component is not found in path "miniprogram_npm/weui-miniprogram/dialog/dialog" (using by "pages/my");onAppRoute Error: Component is not found in path "miniprogram_npm/weui-miniprogram/dialog/dialog" (using by "pages/my") 路径貌似不对啊?这怎么改路径呢
可以的
觉得有道理就点个赞呗 [ 来自 SVVIP 尊贵特权 ]
可以引用weui.less
可以。用useExtendedLib的方式引入吧。
全局配置 | 微信开放文档
https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#useExtendedLib
然后在所需的页面的wpy里面的config里引用组件
wepy1.x参考这里:
在wepy中npm引入weui错误?应该怎么样正确引入? | 微信开放社区
https://developers.weixin.qq.com/community/develop/doc/000042fe810228f40e4a8dffc5f400?jumpto=reply&parent_commentid=0006c05cb242d0b6094a4008c514&commentid=000c046edc012067985ad562d5b4
2.X的版本直接按wepy官方教程引入。
就是最后的页面引入插件时相关路径要改改。
"usingComponents": { "mp-dialog": "miniprogram_npm/weui-miniprogram/dialog/dialog" }
Component is not found in path "miniprogram_npm/weui-miniprogram/dialog/dialog" (using by "pages/my");onAppRoute
Error: Component is not found in path "miniprogram_npm/weui-miniprogram/dialog/dialog" (using by "pages/my") 路径貌似不对啊?这怎么改路径呢
../../weui-miniprogram/dialog/dialog这样的。