Skip to content

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.

build fixes

aashu2833eb2fff3d
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 6f1faebc8c..fc76edf3e4 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -8,6 +8,14 @@ const config = {
// Consume the shared status→color constants (@carbon/utils/status-colors) — a pure-TS
// workspace module, so Next must transpile it.
transpilePackages: ["@carbon/utils"],
+ // `@carbon/glossary` uses Lingui `msg` macros so ERP/MES can translate entries
+ // at render. Without an SWC transform, Turbopack bundles `@lingui/core/macro`
+ // → `@lingui/conf` → Node `fs`, which breaks the build. The SWC plugin
+ // compiles the macro down to plain `{ id, message }` literals so docs reads
+ // `.message` directly without pulling the macro runtime.
+ experimental: {
+ swcPlugins: [["@lingui/swc-plugin", {}]],
+ },
// The monorepo pins React 18 (catalog) while this app runs React 19, so two
// @types/react versions coexist and `next build` trips on the ReactNode /
// ReactPortal type skew (a types-only artifact, not a runtime bug). Skip Next's
diff --git a/docs/package.json b/docs/package.json
index 5ae3c2ec91..d32e913457 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -19,10 +19,10 @@
"@carbon/utils": "workspace:*",
"@radix-ui/react-dialog": "1.1.15",
"@radix-ui/react-popover": "1.1.15",
- "motion": "^12",
"fumadocs-core": "^16",
"fumadocs-mdx": "^15",
"fumadocs-ui": "^16",
+ "motion": "^12",
"next": "^16",
"non.geist": "catalog:",
"react": "^19.2.0",
@@ -34,6 +34,7 @@
"devDependencies": {
"@carbon/config": "workspace:*",
"@httptoolkit/httpsnippet": "^3.0.2",
+ "@lingui/swc-plugin": "^6.4.0",
"@tailwindcss/postcss": "^4",
"@tailwindcss/typography": "catalog:",
"@types/mdx": "^2.0.14",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ddde404673..4300c4c331 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -286,7 +286,7 @@ importers:
version: 1.40.0
'@react-router/remix-routes-option-adapter':
specifier: 'catalog:'
cookie:
specifier: 'catalog:'
version: 1.1.1
@@ -323,7 +323,7 @@ importers:
'@react-router/dev':
specifier: 'catalog:'
'@types/aws-lambda':
specifier: 8.10.152
version: 8.10.152
@@ -371,7 +371,7 @@ importers:
version: 5.8.3
vite-plugin-babel-macros:
specifier: 'catalog:'
optionalDependencies:
'@rollup/rollup-linux-x64-gnu':
specifier: 4.60.1
@@ -1659,6 +1659,9 @@ importers:
'@httptoolkit/httpsnippet':
specifier: ^3.0.2
version: 3.0.2([email protected])
+ '@lingui/swc-plugin':
+ specifier: ^6.4.0
'@tailwindcss/postcss':
specifier: ^4
version: 4.3.1
@@ -2280,12 +2283,9 @@ importers:
'@carbon/config':
specifier: workspace:*
version: link:../config
- '@lingui/macro':
- specifier: 'catalog:'
'@lingui/vite-plugin':
specifier: 'catalog:'
rimraf:
specifier: 'catalog:'
version: 5.0.10
@@ -2297,10 +2297,10 @@ importers:
version: 5.8.3
vite-plugin-babel-macros:
specifier: 'catalog:'
vitest:
specifier: 'catalog:'
packages/jobs:
dependencies:
@@ -4717,6 +4717,18 @@ packages:
babel-plugin-macros:
optional: true
+ '@lingui/[email protected]':
+ resolution: {integrity: sha512-Naz0MVa23DHFLSbmQjUWzCwzH3vSLkw8Uvqln5Bhgw2raRKT2X4O+zHTBpegeYwRCMsdPCQZXymNxpfu46/0vg==}
+ peerDependencies:
+ '@lingui/core': 5 || 6
+ '@swc/core': '*'
+ next: '*'
+ peerDependenciesMeta:
+ '@swc/core':
+ optional: true
+ next:
+ optional: true
+
'@lingui/[email protected]':
resolution: {integrity: sha512-qc5AFEOJjD3AIxDhCx9RZ3ELGnn0r/l3NQb4BZifz7wnYUYfbk1B2kNHCA8OMqb/sw3q36uWr3S4vORlmxPUkQ==}
engines: {node: '>=20.0.0'}
@@ -16227,7 +16239,7 @@ snapshots:
'@babel/runtime': 7.29.2
cosmiconfig: 8.3.6([email protected])
jest-validate: 29.7.0
- jiti: 2.6.1
+ jiti: 2.7.0
picocolors: 1.1.1
transitivePeerDependencies:
- typescript
@@ -16273,14 +16285,13 @@ snapshots:
'@lingui/babel-plugin-lingui-macro': 5.9.4([email protected])([email protected])
babel-plugin-macros: 3.1.0
dependencies:
- '@lingui/cli': 5.9.4([email protected])([email protected])
'@lingui/conf': 5.9.4([email protected])
+ optionalDependencies:
transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
- typescript
@@ -19562,6 +19573,56 @@ snapshots:
'@react-pdf/primitives': 4.2.0
'@react-pdf/stylesheet': 6.1.4
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/generator': 7.29.1
+ '@babel/parser': 7.29.2
+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])
+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ '@remix-run/node-fetch-server': 0.13.1
+ arg: 5.0.2
+ babel-dead-code-elimination: 1.0.12
+ chokidar: 4.0.3
+ dedent: 1.7.2([email protected])
+ es-module-lexer: 1.7.0
+ exit-hook: 2.2.1
+ isbot: 5.1.37
+ jsesc: 3.0.2
+ lodash: 4.17.21
+ p-map: 7.0.4
+ pathe: 1.1.2
+ picocolors: 1.1.1
+ pkg-types: 2.3.0
+ prettier: 3.8.1
+ react-refresh: 0.14.2
+ semver: 7.7.4
+ tinyglobby: 0.2.16
+ valibot: 1.3.1([email protected])
+ optionalDependencies:
+ typescript: 5.8.3
+ transitivePeerDependencies:
+ - '@types/node'
+ - babel-plugin-macros
+ - jiti
+ - less
+ - lightningcss
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+
dependencies:
'@babel/core': 7.29.0
@@ -19634,6 +19695,12 @@ snapshots:
optionalDependencies:
typescript: 5.8.3
+ dependencies:
+ optionalDependencies:
+ typescript: 5.8.3
+
dependencies:
@@ -21759,14 +21826,6 @@ snapshots:
optionalDependencies:
- dependencies:
- '@vitest/spy': 4.1.6
- estree-walker: 3.0.3
- magic-string: 0.30.21
- optionalDependencies:
-
dependencies:
'@vitest/spy': 4.1.6
@@ -28090,34 +28149,6 @@ snapshots:
transitivePeerDependencies:
- msw
- dependencies:
- '@vitest/expect': 4.1.6
- '@vitest/pretty-format': 4.1.6
- '@vitest/runner': 4.1.6
- '@vitest/snapshot': 4.1.6
- '@vitest/spy': 4.1.6
- '@vitest/utils': 4.1.6
- es-module-lexer: 2.0.0
- expect-type: 1.3.0
- magic-string: 0.30.21
- obug: 2.1.1
- pathe: 2.0.3
- picomatch: 4.0.4
- std-env: 4.0.0
- tinybench: 2.9.0
- tinyexec: 1.1.1
- tinyglobby: 0.2.16
- tinyrainbow: 3.1.0
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@opentelemetry/api': 1.9.0
- '@types/node': 24.12.2
- transitivePeerDependencies:
- - msw
-
dependencies:
'@vitest/expect': 4.1.6