fix: resolve vite.config.ts alias path on native Windows without WSL #110
Labels
No labels
backend
beginner friendly
bug
chore
documentation
enhancement
frontend
needs-triage
no-stale
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
size/XS
stage/backlog
stage/done
stage/in progress
stage/in-progress
stage/ready
stale
wontfix
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/housing!110
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vite-config-windows-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
new URL("./src", import.meta.url).pathname produces a path with a leading slash before the drive letter on Windows (e.g. /C:/Users/...), which isn't a valid filesystem path outside WSL/Linux/macOS. This breaks the @ import alias and all @/... imports when running Vite directly via npx vite on native Windows, though it works fine under devenv (which runs through WSL) or on Mac/Linux. Switched to Node's fileURLToPath, which correctly handles Windows paths in all environments.
Kennel Deployments
Last updated for commit
128840a.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.