-
-
Notifications
You must be signed in to change notification settings - Fork 8k
dependency scan error on first startup when resolving sub path import if used in a glob import #22005
Copy link
Copy link
Labels
Description
Describe the bug
if have an subpath import and then use it in glob i.e. import.meta.glob('#src/hooks/*.js') when starting vite dev server get an scan error.
Submitting a PR shortly for this.
Reproduction
see related PR with test case
Steps to reproduce
remove my fix in related PR and run the test and see failure
System Info
System:
OS: Linux 6.18 Alpine Linux
CPU: (16) x64 Common KVM processor
Memory: 21.88 GB / 62.81 GB
Container: Yes
Shell: 5.3.3 - /bin/bash
Binaries:
Node: 24.13.0 - /usr/bin/node
npm: 11.11.0 - /usr/bin/npm
pnpm: 10.29.3 - /home/kalvens/.local/share/pnpm/pnpm
bun: 1.3.3 - /home/kalvens/.bun/bin/bun
Browsers:
Chromium: 146.0.7680.153Used Package Manager
pnpm
Logs
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 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.
Reactions are currently unavailable