Skip to content

dependency scan error on first startup when resolving sub path import if used in a glob import #22005

@kalvenschraut

Description

@kalvenschraut

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.153

Used Package Manager

pnpm

Logs

Image

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions