Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After clone you code to my local computer, and npm run build the main.js is different from yours #1

Closed
moranno opened this issue Jul 14, 2021 · 7 comments · Fixed by #2

Comments

@moranno
Copy link

moranno commented Jul 14, 2021

After clone you code to my local computer, and npm run build the main.js is different from yours, and the mouse globe animated behavior is different from the demo...

any ideas?

@moranno
Copy link
Author

moranno commented Jul 14, 2021

it seem there are some libraries version update that caused the problem... Could you update the code to fit the new libraries?
Thanks!

edit:
try to use npm audit fix to update some libraries, got following error:

WARNING in ./node_modules/three-conic-polygon-geometry/dist/three-conic-polygon-geometry.module.js 314:12-20
export 'Geometry' (imported as 'Geometry') was not found in 'three' 

WARNING in ./node_modules/three-geojson-geometry/dist/three-geojson-geometry.module.js 148:12-20
export 'Geometry' (imported as 'Geometry') was not found in 'three'

WARNING in ./node_modules/three-globe/dist/three-globe.module.js 537:12-20
export 'Geometry' (imported as 'Geometry') was not found in 'three'

WARNING in ./node_modules/three-globe/dist/three-globe.module.js 1072:12-20
export 'Geometry' (imported as 'Geometry') was not found in 'three' 

WARNING in ./node_modules/three-globe/dist/three-globe.module.js 1500:12-20
export 'Geometry' (imported as 'Geometry') was not found in 'three'

WARNING in ./node_modules/three-glow-mesh/dist/index.module.js 1:1214-1215
export 'Face3' (imported as 'o') was not found in 'three'

@YPariset
Copy link

Same problem here when I do npm run build the main.js is different than before and I getting a black screen.
Any solutions ?

Thanks

@janarosmonaliev
Copy link
Owner

Hey, guys! Sorry for not responding, will fix the code soon.

@moranno
Copy link
Author

moranno commented Aug 7, 2021

Hey, guys! Sorry for not responding, will fix the code soon.

Thanks! Can't wait more!

@janarosmonaliev
Copy link
Owner

For now, you can use three.js version 0.124.0. It seems like they had a lot of changes that are now incompatible with my code. Also, npm is flagging a security vulnerability associated with three.js, that's why it's automatically updating three.js to the latest version of 0.131.3.

I will definitely update my code but it needs time.

@janarosmonaliev
Copy link
Owner

Issue was found in an external library called three-glow-mesh. @YPariset @moranno

@moranno
Copy link
Author

moranno commented Aug 28, 2021

@janarosmonaliev Thanks for the update, it seems in new version the mouse cursor globe animated behavior isn't smooth compare to the old one. ( the left and right cursor move beyond a certain boundary doesn't effect he globe animate )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants