question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Bassadincommented, Feb 17, 2022

https://github.com/withastro/snowpack/issues/3867

I’ll leave this here as a reference, should anyone encounter this as well 😃

1reaction
marcofugarocommented, Feb 17, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: · Issue #3867 · FredKSchott/snowpack
I'm having the same issue Package "three" exists but package.json "exports" does not include entry for "./examples/jsm/loaders/GLTFLoader".
Read more >
Common Error Details
Package exists but package.json “exports” does not include entry#. Node.js recently added support for a package.json “exports” entry that defines which ...
Read more >
Common Error Details
Package exists but package.json “exports” does not include entry#. Node.js recently added support for a package.json “exports” entry that defines which ...
Read more >
Package exports
The exports field in the package.json of a package allows to declare which module should be used when using module requests like import...
Read more >
From Bundlers and the complexity of JavaScript projects ...
A node_modules directory now exists. A look into the package.json shows that Lodash is also present. We will need two subfolders: src and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found