didi / chameleon

🦎 一套代码运行多端,一端所见即多端所见
http://cml.didi.cn/
Apache License 2.0
9.02k stars 692 forks source link

cmlComponents: ['cml-ui'],编译后报错 #489

Open qq157788394 opened 4 years ago

qq157788394 commented 4 years ago

bug描述 // chameleon.config.js增加配置,全局引入cml-ui cml.config.merge({ cmlComponents: ['cml-ui'] }) 编译后微信小程序预览工具报错 [ app.json 文件内容错误] app.json: ["usingComponents"]["c-actionsheet"]: "./../npm/cml-ui/components/c-actionsheet/c-actionsheet" 未找到

复现bug的步骤

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

问题截图 image image

编译环境信息

运行环境信息

jimwmg commented 4 years ago

http://cml.didi.cn/components/expand.html 扩展组件在页面里这样引入哈