Tresjs / tres

Declarative ThreeJS using Vue Components
https://tresjs.org
MIT License
2.27k stars 107 forks source link

THREE.GLTFLoader: No DRACOLoader instance provided #45

Closed alvarosabu closed 1 year ago

alvarosabu commented 1 year ago

Describe the bug useGLTF and GLTFModel both have an error with DracoLoader

chunk-3J2C55FA.js?v=30a1aa41:425 [TresJS ▲ ■ ●]  [useLoader] - Failed to load resource Error: THREE.GLTFLoader: No DRACOLoader instance provided.

Reproduction Reproduction Stackblitz

Steps Steps to reproduce the behavior:

  1. Go to Demo,
  2. Check console

Expected behavior useGltf should work

System Info Output of npx envinfo --system --npmPackages '{vite,@tresjs/*, three, vue}' --binaries --browsers

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @tresjs/cientos: ^1.1.0 => 1.1.0 
    @tresjs/core: ^1.2.0 => 1.2.1 
    vite: ^3.2.4 => 3.2.5 

Additional context Add any other context about the problem here.

alvarosabu commented 1 year ago

Seems like the static cdn for draco loaders is returning 404 https://www.gstatic.com/draco/versioned/decoders/1.5.5/