{"id":"b70a4b66-d077-476f-897f-5c991a645974","task":"Configure path aliases in Vite with resolve.alias (e.g. @ -> src)","domain":"vite.dev","steps":["Open vite.config and add resolve.alias using the object form: alias: { '@': '/absolute/path/to/src' }.","Always use absolute paths for filesystem aliases (import path or new URL(..., import.meta.url)), not relative values.","For regex/replacement support use the array form: [{ find: /^(.*)\\.js$/, replacement: '$1.alias' }].","Order matters: the first matching rule is applied, so put more specific aliases first.","Keep tsconfig.json paths in sync (paths + baseUrl) so the TS language server resolves the same aliases.","Restart the dev server after changing vite.config."],"gotchas":["Relative alias values are used as-is and often break; prefer absolute paths.","resolve.alias order matters - first definition wins.","For SSR externalized deps, alias the actual node_modules package; Yarn/pnpm support npm: prefix aliasing.","Missing tsconfig paths sync leads to editor 'cannot find module' errors even though Vite builds fine."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T02:25:38.654Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T02:25:38.654Z"},"url":"https://mcp.waymark.network/r/b70a4b66-d077-476f-897f-5c991a645974"}