vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.99k stars 298 forks source link

Globe.gl with Angular compilation error #89

Closed veronicadev closed 2 years ago

veronicadev commented 2 years ago

Describe the bug I'm getting this error when using Globe.gl with Angular 8 during compilation process (ng serve): ERROR in ./node_modules/three-globe/dist/three-globe.module.js Module not found: Error: Can't resolve 'three/examples/jsm/geometries/TextGeometry.js' in '\digital-earth\node_modules\three-globe\dist' ERROR in ./node_modules/three-globe/dist/three-globe.module.js Module not found: Error: Can't resolve 'three/examples/jsm/loaders/FontLoader.js ' in '\digital-earth\node_modules\three-globe\dist' Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ i 「wdm」: Failed to compile. Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\Dump Stack.log.tmp' Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\hibe rfil.sys' Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\page file.sys' Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\swap file.sys'

Desktop (please complete the following information):

Additional context Are the versions of Angular & Node right?

veronicadev commented 2 years ago

My Three.js version was wrong.