From 6f671dcc49de2940330195c95f4c70704dbb12a5 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 30 Aug 2025 21:03:35 -0700 Subject: [PATCH] [fix] Bypass Nx for i18n collection to fix TypeScript compilation (#5278) Change collect-i18n command from 'nx e2e' to 'npx playwright test' to use Playwright's native TypeScript compilation instead of Nx's pipeline. Nx's compilation pipeline doesn't properly handle TypeScript 'declare' fields in LiteGraph source files, causing babel transform errors. Playwright's native compilation handles these correctly. This addresses the TypeScript compilation error: 'declare fields must first be transformed by @babel/plugin-transform-typescript' Fixes remaining issue after previous workflow fixes. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f6a946d2..5bb695e85 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "knip": "knip --cache", "knip:no-cache": "knip", "locale": "lobe-i18n locale", - "collect-i18n": "nx e2e --config=playwright.i18n.config.ts", + "collect-i18n": "npx playwright test --config=playwright.i18n.config.ts", "json-schema": "tsx scripts/generate-json-schema.ts", "storybook": "nx storybook -p 6006", "build-storybook": "nx build-storybook"