I have imported Image as follows: import Image from "next/image";
Error:
Type '{ src: string; }' is not assignable to type 'IntrinsicAttributes & ImageProps'.
Type '{ src: string; }' is not assignable to type 'ObjectImageProps'.
Types of property 'src' are incompatible.
Type 'string' is not assignable to type 'StaticImport'.ts(2322)
It seems like it will only accept an image that is imported even if the string I am passing into src
is a local path.
EDIT: Because it is a local path, how do I import it dynamically and then pass it into the image?