Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla JS - failed to resolve @threlte/core #15

Open
jmschrack opened this issue Feb 8, 2024 · 1 comment
Open

Vanilla JS - failed to resolve @threlte/core #15

jmschrack opened this issue Feb 8, 2024 · 1 comment

Comments

@jmschrack
Copy link

I tried adding three-inspect to an existing project I have that is written using vanilla js in Vite and ThreeJS
Unfortunately, I run into this error when I try to run dev.

[ERROR] Failed to resolve entry for package "@threlte/core". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@threlte/core" package [plugin vite:dep-pre-bundle]

node_modules/three-inspect/dist/internal/context.js:1:32:
1 │ import { currentWritable } from '@threlte/core';

@michealparks
Copy link
Member

michealparks commented Jun 6, 2024

Thanks for reporting! The vanilla export has been fixed in 0.5.0. Check out the docs for setup (which has changed) or this stackblitz example: https://stackblitz.com/edit/vitejs-vite-pxodhz?file=src%2Fmain.ts. Let me know if that fixes things for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants