Skip to content

remark-mermaid react 19 #2031

@amorey

Description

@amorey

I'm getting an "unmet peer" dependency warning from remark-mermaid when I install the latest version of Nextra with React 19:

 WARN  Issues with peer dependencies found
.
└─┬ nextra 4.2.1
  └─┬ @theguild/remark-mermaid 0.2.0
    └── ✕ unmet peer react@^18.2.0: found 19.0.0

Also, I tried to submit a patch but I'm getting this error when I run the test suite with a clean version of the main branch:

pnpm test       

> the-guild-docs-monorepo@ test /XXX
> vitest


 DEV  v2.1.8 /XXX

 ✓ packages/og-image/src/handler.test.ts (3) 1477ms
 ❯ packages/remark-mermaid/src/index.test.ts (0)
 ❯ packages/remark-npm2yarn/__tests__/plugin.test.ts (0)

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Suites 2 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  packages/remark-mermaid/src/index.test.ts [ packages/remark-mermaid/src/index.test.ts ]
 FAIL  packages/remark-npm2yarn/__tests__/plugin.test.ts [ packages/remark-npm2yarn/__tests__/plugin.test.ts ]
Error: Cannot find module '/XXX/node_modules/.pnpm/nextra@4.0.5_acorn@8.14.0_next@15.1.5_@babel+core@7.26.0_react-dom@18.3.1_react@18.3.1__react_z4ibmhfxhzjcbx27twdo2pbsoq/node_modules/@theguild/remark-mermaid/dist/index.js' imported from /XXX/node_modules/.pnpm/nextra@4.0.5_acorn@8.14.0_next@15.1.5_@babel+core@7.26.0_react-dom@18.3.1_react@18.3.1__react_z4ibmhfxhzjcbx27twdo2pbsoq/node_modules/nextra/dist/server/compile.js
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯

 Test Files  2 failed | 1 passed (3)
      Tests  3 passed (3)
   Start at  16:21:15
   Duration  1.79s (transform 78ms, setup 74ms, collect 133ms, tests 1.48s, environment 0ms, prepare 113ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions