Taro+react开发(32) Please use the ‘new‘ operator, this DOM object constructor cannot be called as a fu

Posted 小歌谣(公众号同名)

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Taro+react开发(32) Please use the ‘new‘ operator, this DOM object constructor cannot be called as a fu相关的知识,希望对你有一定的参考价值。

2.Failed to construct 'Image': Please use the 'new' operator, this DOM object constructor cannot be called as a function


 像上面这种错误都是使用了元素,但没有import到文件导致。

 

以上是关于Taro+react开发(32) Please use the ‘new‘ operator, this DOM object constructor cannot be called as a fu的主要内容,如果未能解决你的问题,请参考以下文章

Taro+react开发(55) 样式写内嵌

Taro+react开发(88):taro条件渲染

Taro+react开发(85):taro路由参数

Taro+react开发(76):taro安装

Taro+react开发(75):taro简介

Taro+react开发(83):taro路由配置