-
Notifications
You must be signed in to change notification settings - Fork 738
[Bug]: glob subpath imports fail to load any files #8884
Copy link
Copy link
Description
Reproduction link or steps
test case in PR I am submitting
What is expected?
to match the files at the subpath import
What is actually happening?
Failing to resolve the subpath import
SS from my local repo. Basically it should have resovled to `/home/kalvens/mono3/apps/src/hooks/*.ts`
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.153Any additional comments?
from what I could gather from AI, https://github.com/vitejs/vite/blob/v8.0.0/packages/vite/src/node/plugins/resolve.ts#L491-L520 resolves the subpath to be relative to the importer so ../hooks/*.ts? But then it gets passed to rolldown based plugin and it thinks its relative to the root of the project?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackPriority
None yet
Effort
None yet