Mein Code ist wie folgt und es funktioniert nicht. Wenn ich den Fotobieter und Photoprovider entferne, wird mein Bild angezeigt. Ist die Bibliothek nicht mit NextJs kompatibel?
Code: Select all
import parse from 'html-react-parser';
import Image from 'next/image';
import { PhotoProvider, PhotoView } from 'react-photo-view';
import 'react-photo-view/dist/react-photo-view.css';
import { ImageProps } from './types';
export default async function ImageProps(props: ImageProps) {
const { title, content, image, category } = props;
return (
);
}