by Anonymous » 13 Apr 2025, 22:06
Ich kann meine Fotos nicht mit der React-Photo-View Bibliothek anzeigen.
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 (
);
}
Ich kann meine Fotos nicht mit der React-Photo-View Bibliothek anzeigen.
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]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 (
);
}[/code]