复现:支付宝小程序在创建组件后在页面中引入组件报错
parse <compoN> error: Custom Component'name should be form of my-component, not myComponent or MyComponent
问题原因:
引入组件的json文件中必须以支付宝组件格式严格拼写
将命名修改为 my-component格式即可,需以 小写加-加小写 的格式格式!注意查看大小写是否错误。
parse <compoN> error: Custom Component‘name should be form of my-component, not myComponent or MyCom
最新推荐文章于 2023-12-27 17:49:36 发布