Issues with next/image
Unanswered
Little fire ant posted this in #help-forum
Little fire antOP
I've encountered a strange error while using the next/image
This is the whole code structure!
import Image from 'next/image'
export default function Home() {
return (
<div>
<Image
src="/vercel.svg"
alt="Vercel Logo"
width={100}
height={24}
priority
/>
<Image
src="/road.jpg"
alt="Road Image"
width={100}
height={24}
priority
/>
<div>
)
}
This code causes an error like the screenshot on Windows
Anyone help me, how I can draw the jpg with Image from next/image
The road.jpg and vercel.svg are in the public folder
Thanks
This is the whole code structure!
import Image from 'next/image'
export default function Home() {
return (
<div>
<Image
src="/vercel.svg"
alt="Vercel Logo"
width={100}
height={24}
priority
/>
<Image
src="/road.jpg"
alt="Road Image"
width={100}
height={24}
priority
/>
<div>
)
}
This code causes an error like the screenshot on Windows
Anyone help me, how I can draw the jpg with Image from next/image
The road.jpg and vercel.svg are in the public folder
Thanks