vatro / svelthree

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

Error : to make it work using sveltekit #211

Open borisrose opened 1 year ago

borisrose commented 1 year ago

Hello I am currently trying to use one example in my project and your lib does not work at all.

as if the type keyword created an error along the way.

Capture d’écran 2023-03-28 à 14 11 09 Capture d’écran 2023-03-28 à 14 12 32 Capture d’écran 2023-03-28 à 14 15 00

for that project, I use sveltekit, prisma et typescript

engageintellect commented 1 year ago

Agreed. I can get the examples to work in a REPL. But in a dev env everything breaks upon refreshing the page.

vatro commented 1 year ago

Hello @borisrose , Hello @engageintellect!

⚠️ Don't use the version published on npm! (very old / the very first proof of concept) ⚠️ svelthree is not stable / still experimental / not production-ready

If you want to try it anyway 👉 look at README on how to try latest (not published via npm) svelthree NOW. The "current" version is svelthree-1.0.0-next.0.98. The upcoming version svelthree-1.0.0-next.1 will be the fairly stable one and more open to contributing, including CI/CD, tests, docs, examples etc. I'm on it (though I didn't have much time lately), see e.g. currently active development branches: 204-refactor-svelthreeinteraction and 204-implement-wheelevent

☝️ Meanwhile, you might take a look at / try threlte! (if not already done so)

Sorry for the inconvenience! 😬

FYI: I've just deprecated all published (very old, outdated) svelthree-versions, means the next one published will be svelthree-1.0.0-next.1 aiming to be stable for any further development / usage.

engageintellect commented 1 year ago

@vatro

Thank you very much for following up on this. I'm looking forward to trying out the items you mentioned. I really love the idea of this project.

Thanks again!