Invalid component name: “MyList “. Component names should conform to valid custom element name in ht

控制台报错:Invalid component name: "MyList ". Component names should conform to valid custom element name in html5 specification.

found in

在这里插入图片描述
就是终端提示组件名字有问题。我反复看了几遍才发现 ,我给某个组件命名为name:'MyList ', MyList后边还跟了个空格 逗号加在里面也不行 把空格删掉就可以了 还是多注意一下语法!!

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_66504310/article/details/127696118