Skip to content

Commit 801e851

Browse files
authored
fix(richtext-lexical): bump acorn to resolve type mismatch with transitive dep (#15791)
# Overview Fixes the `richtext-lexical` build failure caused by a type incompatibility between two resolved versions of `acorn`. **Bump acorn from 8.12.1 to 8.16.0:** `acorn@8.16.0` was published on Feb 19, 2026 and added `ecmaVersion: 17 | 2026` to its type union. `micromark-extension-mdx-jsx` depends on `acorn` via a `^8.x` range and resolved to 8.16.0, while `richtext-lexical` pinned 8.12.1. TypeScript treats the `Options` types from each version as distinct, so passing the 8.12.1 `acorn` module into `mdxJsx()` (which expects 8.16.0 types) fails at build time. Bumping the direct dep to 8.16.0 deduplicates both to a single version.
1 parent 7639664 commit 801e851

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

packages/richtext-lexical/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
"@payloadcms/translations": "workspace:*",
382382
"@payloadcms/ui": "workspace:*",
383383
"@types/uuid": "10.0.0",
384-
"acorn": "8.12.1",
384+
"acorn": "8.16.0",
385385
"bson-objectid": "2.0.4",
386386
"csstype": "3.1.3",
387387
"dequal": "2.0.3",

pnpm-lock.yaml

Lines changed: 6 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)