收藏
回答

组件使用中,提示字段非法如何解决?

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

回答关注问题邀请回答
收藏

4 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-08-19

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2021-08-19
    有用
    回复 5
    • kkkk
      kkkk
      2021-08-19
      麻烦帮我查出问题到底出现在哪里哦,有时间在帖子下回复,或这里私信,在线等您这边回复
      https://developers.weixin.qq.com/community/develop/doc/000e0cc2b102b0d2849c6cf695e400
      2021-08-19
      回复
    • Mred×
      Mred×
      2021-08-28
      我也遇到同样的问题,该怎么解决呀
      2021-08-28
      回复
    • liuil
      liuil
      2021-08-28
      我也遇到了,请问解决了么
      2021-08-28
      回复
    • 官方提醒
      官方提醒
      2021-09-14
      解决了吗?我引入的vant组件,全是警告
      2021-09-14
      回复
    • 随遇而安
      随遇而安
      2022-04-28
      解决了吗?我引入的vant-weapp组件,全是警告
      2022-04-28
      回复
  • 得鹿梦鱼
    得鹿梦鱼
    2021-09-14

    解决方案:

    看的出来,大家都是使用了 colorUi, 问题出在了 colorui/components/cu-custum.js中,

    是因为上面两个字段的属性应该唯一指定,改为如下:重新编译,问题解决!


    2021-09-14
    有用 6
    回复
  • 2014
    2014
    2021-10-28

    出现这种问题是因为,自定义组件里,properties的属性的数据类型定义有问题,我的项目里在升级了基础库后出现这样的提示,我把属性的数据类型由Function改为了Object就好了

    2021-10-28
    有用 1
    回复
  • Mr.Peng
    Mr.Peng
    2021-09-01

    解决了吗


    2021-09-01
    有用
    回复
登录 后发表内容