vatro / svelthree

Create three.js content using Svelte components.
https://svelthree.dev
MIT License
485 stars 15 forks source link

TypeError when removing any types of Lights on bundled version #152

Closed seo-rii closed 2 years ago

seo-rii commented 2 years ago
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'c')
    at transition_out (svelthree.mjs:10:3972)
    at Object.o (svelthree.mjs:10:1022812)
    at transition_out (index.mjs:848:15)
    at Object.outro [as o] (Blocker.svelte:82:107)
    at transition_out (index.mjs:848:15)
    at Object.outro [as o] (Blocker.svelte:90:46)
    at transition_out (index.mjs:848:15)
    at Object.outro [as o] (index.svelte:440:95)
    at transition_out (index.mjs:848:15)
    at outro_and_destroy_block (index.mjs:1169:5)

It looks very similar to issue #1. Like that error, it works well if I use unbundled version.

vatro commented 2 years ago

Hi @Seo-Rii 🙂

I know it's a bit confusing 😕 (sorry for that!) but the currently npm published version 0.119.0-5 is very outdated (proof of concept)! You can try the latest unpublished version (in development) by following the instructions on the README.md page.

The next version to be published on npm will be 1.0.0-next.1 but I'm not quite there yet. 🤷‍♂️ Meanwhile, you could take a look at threlte (if not already done so).

Stay tuned! 🚀 + Cheers, Vatro 🙂