2

I can't make 3D images with pannellum in Next.js because I got this error:

enter image description here

My code:

import { Pannellum } from "pannellum-react";
 import myImage from "./images/download1.jpg";

<Pannellum
    width="100%"
    height="500px"
    image={myImage}
    pitch={10}
    yaw={180}
    hfov={110}
    autoLoad
    showZoomCtrl={false}
    onLoad={() => {
      console.log("panorama loaded");
    }}
  >
    <Pannellum.Hotspot
      type="custom"
      pitch={31}
      yaw={150}
      handleClick={(evt, name) => console.log(name)}
      name="hs1"
    />
  </Pannellum>
juliomalves
  • 42,130
  • 20
  • 150
  • 146
Riks
  • 165
  • 1
  • 5

0 Answers0