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

Hydra three.js integration needs updating (+workaround) #293

Open
crcdng opened this issue Feb 21, 2024 · 0 comments
Open

Hydra three.js integration needs updating (+workaround) #293

crcdng opened this issue Feb 21, 2024 · 0 comments

Comments

@crcdng
Copy link

crcdng commented Feb 21, 2024

three.js has deprecated and removed their 'vanilla' JavaScript build in favour of ESM / Modules. Therefore in the Hydra -> external libraries -> three.js example

await loadScript("https://threejs.org/build/three.js")

does not work anymore. A workaround is to load an older version of three.js < r160 from a CDN.

Example

await loadScript("https://cdn.jsdelivr.net/gh/mrdoob/three.js@r159/build/three.js")
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

No branches or pull requests

1 participant