react-photo-view is a client-only library and you are using it in a server component (marked as async). You could try to convert it to a client component by removing async and adding 'use client' before the imports.