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

Snowpack showing "Package "three" exists but package.json "exports" does not include entry" #23507

Closed
Bassadin opened this issue Feb 16, 2022 · 5 comments

Comments

@Bassadin
Copy link

Bassadin commented Feb 16, 2022

Describe the bug

A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.

To Reproduce

Steps to reproduce the behavior:

  1. I'm using snowpack as a bundle tool
  2. When trying to build my application, I get the error Package "three" exists but package.json "exports" does not include entry for "./examples/jsm/webxr/ARButton.js".

Code

Feel free to pull my repo to reproduce: https://github.com/Bassadin/Three.LS

Expected behavior

Being able to build without the error occurring.

Screenshots

image

Platform:

  • Device: Desktop
  • OS: Windows
  • Browser: Chrome, not important
  • Three.js version: 0.137.5
@mrdoob
Copy link
Owner

mrdoob commented Feb 16, 2022

We use GitHub issues to track confirmed bug reports and feature development.
If you need help, please use the forum, the chat or stackoverflow.

@mrdoob mrdoob closed this as completed Feb 16, 2022
@marcofugaro
Copy link
Contributor

@Bassadin this is an issue with snowpack, you should report this to their own repo.

@Bassadin
Copy link
Author

Bassadin commented Feb 17, 2022

@Bassadin this is an issue with snowpack, you should report this to their own repo.

On their website, it says to consult the package's developers. Although I can see that in your package.json, you're exporting the examples. So you're saying it's something on the end of snowpack?

@marcofugaro
Copy link
Contributor

Although I can see that in your package.json, you're exporting the examples. So you're saying it's something on the end of snowpack?

Exactly

@Bassadin
Copy link
Author

FredKSchott/snowpack#3867

I'll leave this here as a reference, should anyone encounter this as well :)

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

No branches or pull requests

3 participants