Snowpack showing "Package "three" exists but package.json "exports" does not include entry"
See original GitHub issueDescribe 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:
- I’m using snowpack as a bundle tool
- 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
Platform:
- Device: Desktop
- OS: Windows
- Browser: Chrome, not important
- Three.js version: 0.137.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/withastro/snowpack/issues/3867
I’ll leave this here as a reference, should anyone encounter this as well 😃
Exactly