esm.sh
esm.sh copied to clipboard
Error with import('https://esm.sh/lume').then(console.log)
import('https://esm.sh/lume').then(console.log)
gives
Uncaught (in promise) ReferenceError: __cassowary_parser is not defined
Any idea why?
@trusktr seems it is esbuild's issue, i will find out what happend, thanks
Trying to import lume results in this:
➜ deno run --allow-net test.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/dist/html.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/controls/OrbitControls.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/Three.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/PerspectiveCamera.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/Camera.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/renderers/webgl/WebGLRenderLists.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Color.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/Material.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/Object3D.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/OrthographicCamera.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Quaternion.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/textures/Texture.js.d.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/dist/dom.js.d.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/es/AutoLayout.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Mesh.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Points.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/BufferGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/Geometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Group.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/ColladaLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/GLTFLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/scenes/Scene.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Vector3.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/PointLight.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/Light.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/AmbientLight.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/OBJLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/MTLLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/FBXLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/DRACOLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshPhongMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshLambertMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/PointsMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/ShaderMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshBasicMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/BoxGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/PLYLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/PlaneGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/SphereGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/controls/OrbitControls.js.d.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/dist/html.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/Three.js.d.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/es/AutoLayout.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/Object3D.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Group.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/ColladaLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/BufferGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/GLTFLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Vector3.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/scenes/Scene.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/PerspectiveCamera.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Points.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/Material.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/objects/Mesh.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Color.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/OrthographicCamera.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/math/Quaternion.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/renderers/webgl/WebGLRenderLists.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/cameras/Camera.js.d.ts
Download https://cdn.esm.sh/v47/@lume/[email protected]/dist/dom.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/textures/Texture.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/core/Geometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/Light.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/AmbientLight.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/lights/PointLight.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshPhongMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshLambertMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/OBJLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/MTLLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/FBXLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/DRACOLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/examples/jsm/loaders/PLYLoader.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/BoxGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/PlaneGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/geometries/SphereGeometry.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/PointsMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/ShaderMaterial.js.d.ts
Download https://cdn.esm.sh/v47/[email protected]/src/materials/MeshBasicMaterial.js.d.ts
error: Uncaught (in promise) TypeError: The requested module '/v47/[email protected]/deno/stream-browserify.js' does not provide an export named 'Readable'
on v50 I get this:
Download http://localhost:3333/v50/@lume/[email protected]/dist/html.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/Three.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/controls/OrbitControls.js...d.ts
Download http://localhost:3333/v50/@lume/[email protected]/es/AutoLayout.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/PerspectiveCamera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/renderers/webgl/WebGLRenderLists.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/Object3D.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/Camera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/OrthographicCamera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Color.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/Material.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Quaternion.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/PointLight.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/AmbientLight.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/Light.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/BufferGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/Geometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/textures/Texture.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/scenes/Scene.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/GLTFLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Group.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/ColladaLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Vector3.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Mesh.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Points.js...d.ts
Download http://localhost:3333/v50/@lume/[email protected]/dist/dom.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/BoxGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/PlaneGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/PLYLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/SphereGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshBasicMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/ShaderMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshLambertMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshPhongMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/PointsMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/OBJLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/MTLLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/DRACOLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/FBXLoader.js...d.ts
Download http://localhost:3333/v50/@lume/[email protected]/dist/html.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/Three.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/controls/OrbitControls.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/PerspectiveCamera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Mesh.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/Material.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Points.js...d.ts
Download http://localhost:3333/v50/@lume/[email protected]/es/AutoLayout.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/BufferGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/Geometry.js...d.ts
Download http://localhost:3333/v50/@lume/[email protected]/dist/dom.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/Light.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/AmbientLight.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/lights/PointLight.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Quaternion.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/Camera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/cameras/OrthographicCamera.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/core/Object3D.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Color.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/renderers/webgl/WebGLRenderLists.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/textures/Texture.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/scenes/Scene.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/GLTFLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/objects/Group.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/ColladaLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/math/Vector3.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshPhongMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshLambertMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/DRACOLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/FBXLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/OBJLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/MTLLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/ShaderMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/MeshBasicMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/materials/PointsMaterial.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/PlaneGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/SphereGeometry.js...d.ts
Download http://localhost:3333/v50/[email protected]/examples/jsm/loaders/PLYLoader.js...d.ts
Download http://localhost:3333/v50/[email protected]/src/geometries/BoxGeometry.js...d.ts
error: Uncaught (in promise) TypeError: The requested module '/v50/[email protected]/deno/html/dist/html.js' does not provide an export named 'default'
this should work now
@talentlessguy why would stream-browserify be in there like that? No such import is needed with vanilla Lume modules. Here's an example importmap that works locally: https://github.com/lume/lume/blob/c86ca7027e86bc5d774e315adf46308ad5ffb5bf/examples/importmap.js#L3-L23
Confirmed, latest import('https://esm.sh/[email protected]').then(console.log) is working. Thanks!
@talentlessguy why would
stream-browserifybe in there like that? No such import is needed with vanilla Lume modules. Here's an example importmap that works locally: https://github.com/lume/lume/blob/c86ca7027e86bc5d774e315adf46308ad5ffb5bf/examples/importmap.js#L3-L23
probably it's an esm.sh polyfill for the browser but I'm not sure