Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: typecheck
Sidwebworks7ba9cf2623cb
diff --git a/apps/erp/app/hooks/useAnyVisible.ts b/apps/erp/app/hooks/useAnyVisible.tsindex 91ef4bca41..2a4ee56f15 100644--- a/apps/erp/app/hooks/useAnyVisible.ts+++ b/apps/erp/app/hooks/useAnyVisible.ts@@ -54,9 +54,10 @@ export function useAnyVisible({},{ threshold });- targets.forEach((t) => obs.observe(t));+ targets.forEach((t) => {+ obs.observe(t);+ });return () => obs.disconnect();- // biome-ignore lint/correctness/useExhaustiveDependencies: caller-controlled `deps` re-queries DOM}, [enabled, selector, threshold, containerRef, ...deps]);return anyVisible;diff --git a/apps/erp/app/modules/settings/settings.server.ts b/apps/erp/app/modules/settings/settings.server.tsindex 2c8d89894f..38e16ab809 100644--- a/apps/erp/app/modules/settings/settings.server.ts+++ b/apps/erp/app/modules/settings/settings.server.ts@@ -1,5 +1,5 @@import type { Database, Json } from "@carbon/database";-import { getIntegrationConfigById } from "@carbon/ee";+import { getIntegrationConfigById, type IntegrationID } from "@carbon/ee";import { getIntegrationServerHooks } from "@carbon/ee/hooks.server";import { redis } from "@carbon/kv";import type { SupabaseClient } from "@supabase/supabase-js";@@ -353,7 +353,7 @@ export async function getIntegrationHealth(}const serverHooks = getIntegrationServerHooks(integration.id!);- const config = getIntegrationConfigById(integration.id!);+ const config = getIntegrationConfigById(integration.id as IntegrationID);const healthcheck = serverHooks?.onHealthcheck ?? config?.onHealthcheck;if (!healthcheck) {diff --git a/apps/erp/app/routes/x+/items+/rules.new.tsx b/apps/erp/app/routes/x+/items+/rules.new.tsxindex 5c0e1fb673..511e2cee5b 100644--- a/apps/erp/app/routes/x+/items+/rules.new.tsx+++ b/apps/erp/app/routes/x+/items+/rules.new.tsx@@ -31,7 +31,6 @@ export async function action({ request }: ActionFunctionArgs) {client,companyId,feature: "ITEM_RULES",- feature: "ITEM_RULES",redirectTo: path.to.itemRules});diff --git a/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx b/apps/erp/app/routes/x+/shipment+/lines.tracking.tsxindex 9330bdfc69..b7f0baf7c8 100644--- a/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx+++ b/apps/erp/app/routes/x+/shipment+/lines.tracking.tsx@@ -113,7 +113,7 @@ export async function action({ request }: ActionFunctionArgs) {...((stale.attributes ?? {}) as Record<string, any>)};delete cleaned["Shipment Line"];- delete cleaned["Shipment"];+ delete cleaned.Shipment;delete cleaned["Shipment Line Index"];return serviceRole.from("trackedEntity")diff --git a/packages/ee/package.json b/packages/ee/package.jsonindex 09670f7589..12d0583c04 100644--- a/packages/ee/package.json+++ b/packages/ee/package.json@@ -53,6 +53,7 @@"react": "catalog:","react-icons": "catalog:","react-pdf": "catalog:",+ "react-router": "catalog:","sst": "catalog:","supabase": "catalog:","tsup": "catalog:",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex f05005ba9e..ff9b7c9feb 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2006,6 +2006,9 @@ importers:react-pdf:specifier: 'catalog:'+ react-router:+ specifier: 'catalog:'sst:specifier: 'catalog:'version: 4.6.9