You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
To use three-globe on react-three-fiber, I have to use react-three-fiber's extend function to import it. Doing so causes a "window is not defined" error that does not break the dev environment, but restricts next build.
To Reproduce
Steps to reproduce the behavior:
Create a NextJS app
I a component file, import ThreeGlobe from "three-globe";
After importing, extend({ThreeGlobe})
Expected behavior
three-globe imported without any errors
Screenshots
Error logs:
Desktop (please complete the following information):
OS: MacOS Monterey
Browser: Chrome
Version: Version 115.0.5790.114 (Official Build) (arm64)
Smartphone (please complete the following information):
Not Tested on smartphone
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
To use three-globe on react-three-fiber, I have to use react-three-fiber's extend function to import it. Doing so causes a "window is not defined" error that does not break the dev environment, but restricts next build.
To Reproduce
Steps to reproduce the behavior:
import ThreeGlobe from "three-globe";
extend({ThreeGlobe})
Expected behavior
three-globe imported without any errors
Screenshots
![image](https://private-user-images.githubusercontent.com/75696154/258658645-3623c2f9-b0e1-498b-825f-cf480cae03b8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTk5OTUsIm5iZiI6MTcxOTkxOTY5NSwicGF0aCI6Ii83NTY5NjE1NC8yNTg2NTg2NDUtMzYyM2MyZjktYjBlMS00OThiLTgyNWYtY2Y0ODBjYWUwM2I4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDExMjgxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhMGIxMmJhMzE2YzIzOTY2YmZhMTcyOTk4MTc2MWQ4NWU1MmRkZmY4NGQ2NzAxNTdkZjA0MWQxZDFjMTQ5YzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8_J87pQyl0hdW5PYTOaDmv4OJgz0VSfotgcIwPYpoQs)
Error logs:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Not Tested on smartphone
Additional context
N/A
The text was updated successfully, but these errors were encountered: