tentone / potree-core

Potree point cloud viewer library core components for easier integration in a three.js project.
https://tentone.github.io/potree-core/
Other
171 stars 53 forks source link

NPM module is missing three as a peer dependency #4

Open ekatzenstein opened 5 years ago

ekatzenstein commented 5 years ago

An imported module cannot rely on a globally imported THREE

tentone commented 5 years ago

Hi

I might add a second build without the hardcoded globally imported THREE variable, having it instead as a peer dependency.

Thanks a lot for reporting.

tsari-lidar-perception commented 2 years ago

Hi author, I am currently working on a project using react. I have installed potree-core through npm. However it returns the undefined THREE error. Can you give a simple example using potree-core in react? Thx!