vasturiano / react-globe.gl

React component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/react-globe.gl/example/world-population/
MIT License
818 stars 150 forks source link

Failed to compile on NextJs & Typescript #166

Open rishabh1403 opened 7 months ago

rishabh1403 commented 7 months ago

Describe the bug Currently working with library in a Next.JS project and the library works as expected. However, when I try to build the project, the build process fails with TypeScript errors. I have verified by disabling the TypeScript check in Next config and the build passes correctly.

To Reproduce Imported Globe with

const Globe = dynamic(
  () => import('react-globe.gl').then((mod) => mod.default),
  {
    ssr: false,
  }
)

and ran next build

Expected behavior Build should pass successfully.

Screenshots

image