Hello, Two.js! | Lukas Hermann | Observable
ojs
ojs
ojs
ojs
Author
Lukas Hermann
@lsh
Dataviz @ databricks
Comments (2)
Joshua Byrd
Sep 26, 2022
Since two.js switched to es6 module export it seems we need to use dynamic imports like this `Two = (await import("
https://cdn.skypack.dev/two.js@0.7
")).default` eg.
https://observablehq.com/@phocks/two-js-starfield-experiment#Two
Lukas Hermann
Sep 26, 2022
Good catch, thank you!
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Lukas Hermann
1
Reply
Add comment
Subscribe to notifications
0
Hello, Two.js! | Lukas Hermann | Observable