Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 compatibility issue #576

Open
faisalnightstar opened this issue Feb 28, 2025 · 3 comments
Open

React 19 compatibility issue #576

faisalnightstar opened this issue Feb 28, 2025 · 3 comments

Comments

@faisalnightstar
Copy link

faisalnightstar commented Feb 28, 2025

I'm encountering a dependency conflict when using @tinymce/tinymce-react version 6.0.0 with React 19.

Problem:

When attempting to install dependencies, I receive the following npm error:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0 || ^17.0.1 || ^16.7.0" from @tinymce/[email protected]
npm error node_modules/@tinymce/tinymce-react
npm error @tinymce/tinymce-react@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/faisal/.npm/_logs/2025-02-28T23_04_40_051Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/faisal/.npm/_logs/2025-02-28T23_04_40_051Z-debug-0.log

This indicates that @tinymce/tinymce-react version 6.0.0 specifies a peer dependency of react@"^18.0.0 || ^17.0.1 || ^16.7.0", while my project is using React 19.

Environment:

@tinymce/tinymce-react: 6.0.0
react: 19.0.0
npm: 11.0.0
Node.js: v23.6.0

@PrinceDobariya0710
Copy link

PrinceDobariya0710 commented Mar 1, 2025

I have also faced the same issue. You can try below if you are stuck for now.

npm install --legacy-peer-deps @tinymce/tinymce-react

@jenkin
Copy link

jenkin commented Mar 12, 2025

You can also override the broken peer dependencies in your package.json file...

"overrides": {
  "@tinymce/tinymce-react": {
    "react": ">=18",
    "react-dom": ">=18"
  }
}

@jenkin
Copy link

jenkin commented Mar 12, 2025

Uh, this issue is a duplicated of #566 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants