Skip to content

Commit 8c723cc

Browse files
diegomuraclaude
andauthored
fix(math,mermaid): declare @react-pdf/primitives dependency (#3464)
Both packages import @react-pdf/primitives at runtime but never declared it, so it only resolved via hoisting. Strict package layouts fail to resolve the bare import. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 6d7c2b7 commit 8c723cc

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@react-pdf/mermaid': patch
3+
'@react-pdf/math': patch
4+
---
5+
6+
Declare `@react-pdf/primitives` dependency.

packages/math/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"lib"
2424
],
2525
"dependencies": {
26+
"@react-pdf/primitives": "^4.3.0",
2627
"@react-pdf/svg": "^1.1.0",
2728
"mathjax-full": "^3.2.2"
2829
},

packages/mermaid/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"lib"
2424
],
2525
"dependencies": {
26+
"@react-pdf/primitives": "^4.3.0",
2627
"@react-pdf/svg": "^1.1.0",
2728
"beautiful-mermaid": "^1.1.3"
2829
},

0 commit comments

Comments
 (0)