Fix: replace @/* path alias with relative imports for Docker compat
Vite's path alias resolution worked locally but consistently failed in the Docker stage with "Could not load /web/src/lib/utils ... ENOENT" even after fixing __dirname for ESM. Some interaction between act/buildx and Vite's resolver around tsconfig paths. Relative imports sidestep the issue entirely and are explicit about the dependency direction. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Deal } from "@/api/types";
|
||||
import { formatCurrencyILS, formatDate, formatNumber } from "@/lib/utils";
|
||||
import { Deal } from "../api/types";
|
||||
import { formatCurrencyILS, formatDate, formatNumber } from "../lib/utils";
|
||||
|
||||
interface Props {
|
||||
deals: Deal[];
|
||||
|
||||
Reference in New Issue
Block a user