[bug]: Plugin init fails due to mismatched React dependency versions

Open
#111 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
cli, tooling

Research direction

Run npx @strapi/sdk-plugin init my-plugin and inspect the generated package.json, focusing on the React and react-intl versions. Check the dependency template or entry point that produces those values, then verify that the generated plugin installs successfully without a peer dependency error.

Written by the indexing model from the issue text.

Description

issue: bug
What version of @strapi/sdk-plugin are you using?

NPM version: 11.8.0
Node version: v24.13.1
SDK version: 5.4.0

What's Wrong?

When running npx @strapi/sdk-plugin init my-plugin, the npm install step fails because of peer dependency mismatch between react and react-intl.

The SDK generates the plugin's package.json containing "react": "^18.3.1" and "react-intl": "^8.1.3". However, react-intl only supports React 19 starting from v8.1.3 (see commit). This causes the npm install step to fail.

This is very unfortunate because [email protected] does support React 18 (https://github.com/formatjs/formatjs/blob/react-intl%408.1.2/packages/react-intl/package.json#L24)

Image
To Reproduce

Run npx @strapi/sdk-plugin init my-plugin

Expected Behaviour

The plugin should be created and have dependencies installed.

Dominant language
TypeScript
Stars
24
Forks
13
Avg merge
5d 3h
Merged PRs (30d)
5

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from strapi/sdk-plugin

All issues in strapi/sdk-plugin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.