vite: vite deep scan - can't import styles from node modules scoped npm pacakge
edit: repo: https://github.com/lior-a/vite_issue/tree/master/cant_import_dist_style
|### Describe the bug
fail to import from node modules (during npm link of scope package) even though you can see that the file is explicitly exists in the node_modules and the path is 100% correct.
Reproduction
https://stackblitz.com/edit/vitejs-vite-peyhhn?file=main.js
System Info
https://stackblitz.com/edit/vitejs-vite-peyhhn?file=main.js
* note that i've created the node_modules manually and i think stackblitz just remove it or hide it somehow
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (8 by maintainers)
@sapphi-red you right i missed that
dist
is gitignored (exists on my machine but not pushed.) i’ve changed it tooutput
see commit https://github.com/lior-a/vite_issue/commit/2a7e1cc2e0632ba94db0ba12b58c2a71b67d9d37but it still leave us with 2 imports that don’t work and 1 that does