Tresjs / tres

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

Helpers diposal error since latest threejs update #682

Closed alvarosabu closed 1 month ago

alvarosabu commented 1 month ago

Describe the bug

There is an issue with the automatic disposal, some elements like

Are throwing this error when the scene is unmounted

chunk-SRLW6FY7.js?v=a19e4a6b:30745 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'dispose')
    at AxesHelper.dispose (chunk-SRLW6FY7.js?v=a19e4a6b:30745:19)

Reproduction

local playground

Steps to reproduce

System Info

System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 60.73 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 8.15.4 - ~/Library/pnpm/pnpm
    bun: 1.0.2 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 120.1.61.116
    Chrome: 124.0.6367.207
    Safari: 17.3.1
  npmPackages:
    @tresjs/cientos: 3.8.0 => 3.8.0 
    @tresjs/core: workspace:^ => 4.0.0-rc.0 
    @tresjs/leches: 0.15.0-next.3 => 0.15.0-next.3

Used Package Manager

pnpm

Code of Conduct

Sea-DH1 commented 1 month ago

This version of Box3Helper still has this problem