Tresjs / tres

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

useSeek, useRaycaster and useLoader are missing from TresJS 3.8.0 #619

Closed bperel closed 3 months ago

bperel commented 3 months ago

Describe the bug

I am importing useSeek in my project:

import { useSeek } from "@tresjs/core";

Since the upgrade to Tres 3.8.0, I get the error Module ""@tresjs/core"" has no exported member "useSeek". Did you mean to use "import useSeek from "@tresjs/core"" instead?

Indeed, useSeek, useRaycaster and useLoader which are exported in src/composables/index.d.ts don't seem to be present in the package anymore.

Reproduction

https://www.runpkg.com/?@tresjs/core@3.8.0/dist/src/composables/index.d.ts

Steps to reproduce

Unfortunately I didn't manage to reproduce the issue on Stackblitz, but the link above shows that the 3 files are missing from the directory where it's supposed to be imported from.

System Info

No response

Used Package Manager

pnpm

Code of Conduct

alvarosabu commented 3 months ago

Hi @bperel thanks for raising this. Seems to be a typing issue because the composable are indeed correctly exported in the package

Screenshot 2024-04-08 at 10 33 42

danielklein-arch commented 3 months ago

@alvarosabu Hi, just stumbled upon this issue when I was solving the same problem but with useLoader. Based on your response to this issue I guess it will be typing issue as well

alvarosabu commented 3 months ago

@bperel @danielklein-arch please update the core to https://github.com/Tresjs/tres/releases/tag/3.8.1

kleinpetr commented 3 months ago

@alvarosabu I've upgraded deps in the nuxt module we use :) https://github.com/Tresjs/nuxt/pull/91