【发布时间】:2021-07-13 05:49:42
【问题描述】:
在使用下一个 js Image 时,会出现错误
下一个.config.js:
module.exports = {
images: {
domains: ['localhost'],
},
};
我不太明白如何设置 img 以及下一个 js 想要我做什么
图片组件代码:
<Image
alt={element.show_name_eng}
src={'\\' + element.show_picture_1980} - throws an error if not - //
but it works without problems if you use picture + source
width={200}
height={100}/>
【问题讨论】:
标签: javascript reactjs next.js