From 75f80f19864e93f297557e26205b9646b4110c95 Mon Sep 17 00:00:00 2001 From: Shayan Date: Mon, 22 Jun 2026 15:34:13 +0330 Subject: [PATCH 1/2] fix(web): restore portable type for defaultTheme PR #14 dropped the explicit `LexKitTheme` annotation on `defaultTheme`. Without it, TypeScript infers a type that references Lexical's internal modules, which can't be named portably when Next.js type-checks the build: The inferred type of 'defaultTheme' cannot be named without a reference to '@/node_modules/lexical/LexicalEditor'. This is likely not portable. Annotate explicitly (matching the shadcn template) and import the type from the public `@lexkit/editor` entrypoint. --- apps/web/components/templates/default/theme.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/components/templates/default/theme.ts b/apps/web/components/templates/default/theme.ts index 7441bbf..fc5d582 100644 --- a/apps/web/components/templates/default/theme.ts +++ b/apps/web/components/templates/default/theme.ts @@ -1,5 +1,8 @@ -import { defaultLexKitTheme } from "@lexkit/editor"; +import { defaultLexKitTheme, type LexKitTheme } from "@lexkit/editor"; -export const defaultTheme = { +// The explicit annotation is required: without it TypeScript infers a type that +// references Lexical's internal modules, which can't be named portably when +// Next.js type-checks the build ("inferred type ... cannot be named"). +export const defaultTheme: LexKitTheme = { ...defaultLexKitTheme, }; From ffb566e82d9516cce746457efd56b50bfa15171a Mon Sep 17 00:00:00 2001 From: Shayan Date: Mon, 22 Jun 2026 15:34:21 +0330 Subject: [PATCH 2/2] fix(eslint-config): declare missing @eslint/js dependency base.js, next.js and react-internal.js all import `@eslint/js` but it was never declared, so it isn't resolvable under pnpm's strict layout. Next.js surfaced this during `next build`: ESLint: Cannot find package '@eslint/js' imported from packages/eslint-config/next.js Add it at the eslint v9 major to match the other lint deps. --- packages/eslint-config/package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 53871f8..1faa2f5 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -9,6 +9,7 @@ "./react-internal": "./react-internal.js" }, "devDependencies": { + "@eslint/js": "^9.32.0", "@next/eslint-plugin-next": "^15.4.5", "@typescript-eslint/eslint-plugin": "^8.39.0", "@typescript-eslint/parser": "^8.39.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31c6775..a209906 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -211,6 +211,9 @@ importers: packages/eslint-config: devDependencies: + '@eslint/js': + specifier: ^9.32.0 + version: 9.32.0 '@next/eslint-plugin-next': specifier: ^15.4.5 version: 15.4.5