"No matching export" for disabled imports #14628
Labels
bug: upstream
Bug in a dependency of Vite
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
The
webtorrent
package has multiple imports that should be disabled when ran in the browser (browser
field inpackage.json
), Vite, however just errors when building as it still tries to import the disabled imports.Reproduction
https://stackblitz.com/edit/vitejs-vite-85pdcs
Steps to reproduce
Install and import
webtorrent
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: