chameleon Linter: template errors: tag: "cml" is either not allowed in this template or not referenced as a component

m2xkgtsf  于 2022-10-20  发布在  其他
关注(0)|答案(1)|浏览(198)

bug描述

根据 模板多态 在 config 开启语法检查 enableLinter: true 后,页面使用:

<template>
  <cml type="wx">
    <view>
      省略
    </view>
  </cml>
</template>

控制台编译报错:

[file]: src/pages/index/index.cml
template errors:
[2 (line), 1 (column)] tag: "cml" is either not allowed in this template or not referenced as a component

复现bug的步骤

如上

编译环境信息

  • chameleon-tool 版本:1.0.6-alpha.5
  • nodejs版本、npm版本:[node v12.16.2、npm 6.14.4]
  • 电脑操作系统: macOS Catalina 10.15.2

运行环境信息

  • 端版本: 微信小程序
ie3xauqp

ie3xauqp1#

收到,感谢反馈。
校验检查不影响多态模板的使用,暂时可以忽略这个警告,修复此问题之后我们会在这里同步。

相关问题