Quick checklist
- I am using the latest version of Snowpack and all plugins.
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the bug
I’m trying to build an application with Three.js, importing a class from their examples folder. Although they have that exported in their package.json, I get an eror as decribed on the snowpack website that it isn’t exported: Package "three" exists but package.json "exports" does not include entry for "./examples/jsm/webxr/ARButton.js".
.
Steps to reproduce
- Feel free to clone my code
- npm install
- npm run build
Link to minimal reproducible example (optional)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Insect - Wikipedia
Insects (from Latin insectum) are pancrustacean hexapod invertebrates of the class Insecta. They are the largest group within the arthropod phylum.
Read more >🐛 Bug Emoji - Emojipedia
A bug, or insect, generally depicted as a caterpillar, which becomes a 🦋 Butterfly. Shown in full profile facing left, inching up on...
Read more >Bug & Insect Identification List NPMA's Pest Guide
This Pest Guide is a helpful tool to aid in identifying bugs, insects, and other pests. Browse a comprehensive list of bugs, insects,...
Read more >What is a bug (computer bug)? - TechTarget
Software bugs have caused car crashes, explosions and other deadly accidents. Learn about the various types of bugs and how they can be...
Read more >All About Bugs - YouTube
Bugs can be slimy, beautiful, tiny, squirmy, and graceful. In this story, Kai and his friend Marcus are looking for bugs.
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
I’ll leave more info.
Three.js is using a valid node
exports
field, according to the node.js docs:in plain node.js, this import works correctly:
while on snowpack, the error reported above occurs.
For a temporary fix, you can go into your local
node_modules/three/package.json
and add"./examples/jsm/loaders/*": "./examples/jsm/loaders/*"
to theexports
section. That’s what I’ve been doing