Skip to content

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

@tewson

Description

@tewson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions