使用uniapp开发时,页面报错chunk-vendors.js:3874 [Vue warn]: Invalid component name: “.-pages-Myblock-uni_myMessage”. Component names should conform to valid custom element name in html5 specification.
原因:在pages.json中新建页面的时候,自动添加的路径如下图:
解决:路径前的./符号去掉即可。
使用uniapp开发时,页面报错chunk-vendors.js:3874 [Vue warn]: Invalid component name: “.-pages-Myblock-uni_myMessage”. Component names should conform to valid custom element name in html5 specification.
原因:在pages.json中新建页面的时候,自动添加的路径如下图:
解决:路径前的./符号去掉即可。