VM474 WAService.js:2 [Component] the type of property "isCustom" is illegal (when preparing behavior "colorui/components/cu-custom").
(anonymous) @ VM474 WAService.js:2
i.safeCallback @ VM474 WAService.js:2
i.call @ VM474 WAService.js:2
i.triggerWarning @ VM474 WAService.js:2
u.prepare @ VM474 WAService.js:2
Hi @ VM474 WAService.js:2
Zi @ VM474 WAService.js:2
on @ VM474 WAService.js:2
(anonymous) @ VM474 WAService.js:2
(anonymous) @ VM474 WAService.js:2
O.App.Component @ index.js? [sm]:295
(anonymous) @ cu-custom.js? [sm]:2
require @ VM474 WAService.js:2
(anonymous) @ VM671:8394
doWhenAllScriptLoaded @ VM576:9689
scriptLoaded @ VM576:9717
(anonymous) @ VM576:9742
load (async)
(anonymous) @ assubloader.js:1
V @ VM474 WAService.js:2
loadScripts @ assubloader.js:1
loadAppResourceScripts @ assubloader.js:1
(anonymous) @ VM576:9761
(anonymous) @ VM576:9767
loadScripts @ assubloader.js:1
async function (async)
loadScripts @ assubloader.js:1
loadAppResourceScripts @ assubloader.js:1
(anonymous) @ VM572:1
t.loadScripts @ VM8 asdebug.js:1
loadAppService @ VM8 asdebug.js:1
messagerCallback @ VM8 asdebug.js:1
(anonymous) @ VM8 asdebug.js:1
f @ VM8 asdebug.js:1
g @ VM8 asdebug.js:1
(anonymous) @ VM8 asdebug.js:1
_ws.onmessage @ VM8 asdebug.js:1
VM474 WAService.js:2 [Component] the type of property "isBack" is illegal (when preparing behavior "colorui/components/cu-custom").
(anonymous) @ VM474 WAService.js:2
i.safeCallback @ VM474 WAService.js:2
i.call @ VM474 WAService.js:2
i.triggerWarning @ VM474 WAService.js:2
u.prepare @ VM474 WAService.js:2
Hi @ VM474 WAService.js:2
Zi @ VM474 WAService.js:2
on @ VM474 WAService.js:2
(anonymous) @ VM474 WAService.js:2
(anonymous) @ VM474 WAService.js:2
O.App.Component @ index.js? [sm]:295
(anonymous) @ cu-custom.js? [sm]:2
require @ VM474 WAService.js:2
(anonymous) @ VM671:8394
doWhenAllScriptLoaded @ VM576:9689
scriptLoaded @ VM576:9717
(anonymous) @ VM576:9742
load (async)
(anonymous) @ assubloader.js:1
V @ VM474 WAService.js:2
loadScripts @ assubloader.js:1
loadAppResourceScripts @ assubloader.js:1
(anonymous) @ VM576:9761
(anonymous) @ VM576:9767
loadScripts @ assubloader.js:1
async function (async)
loadScripts @ assubloader.js:1
loadAppResourceScripts @ assubloader.js:1
(anonymous) @ VM572:1
t.loadScripts @ VM8 asdebug.js:1
loadAppService @ VM8 asdebug.js:1
messagerCallback @ VM8 asdebug.js:1
(anonymous) @ VM8 asdebug.js:1
f @ VM8 asdebug.js:1
g @ VM8 asdebug.js:1
(anonymous) @ VM8 asdebug.js:1
_ws.onmessage @ VM8 asdebug.js:1
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
https://developers.weixin.qq.com/community/develop/doc/000e0cc2b102b0d2849c6cf695e400
解决方案:
看的出来,大家都是使用了 colorUi, 问题出在了 colorui/components/cu-custum.js中,
是因为上面两个字段的属性应该唯一指定,改为如下:重新编译,问题解决!
出现这种问题是因为,自定义组件里,properties的属性的数据类型定义有问题,我的项目里在升级了基础库后出现这样的提示,我把属性的数据类型由Function改为了Object就好了
解决了吗