Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Failed to construct 'Image': Please use the 'new' operator, this DOM object
错误信息如上,Image标签无法渲染,请问是需要转换语法吗?
组件中引用 Image就可以了
import { Image } from '@tarojs/components'
之前一直用小程序预览的,不引用Image标签也不会有问题(小程序内置标签),但是在H5中因为没有Image标签只有img所以会报错,开发的时候还是要多注意一下。
其他标签如果出现类似问题,也是一样的解决方案