<Image src= { sessionData?.user.image} alt="user" width={100}
height={100} />`
An issue has been encountered:
There is a type error stating that 'string | null | undefined' cannot be assigned to type 'string | StaticImport'.
Type 'undefined' cannot be assigned to type 'string | StaticImport'.ts(2322)
image-component.d.ts(7, 5): The expected type is defined in the property 'src' which
is declared here on type 'IntrinsicAttributes & Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>,
HTMLImageElement>, "ref" | ... 5 more ... | "srcSet"> & { ...; } & RefAttributes<...>'
Is there a way to specify a type for it or should I leave it as is since no error is being displayed on the webpage?