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

While Creating React Project - Dependency Resolution Issue #17011

Open
Nitish-UIUX opened this issue Feb 8, 2025 · 3 comments
Open

While Creating React Project - Dependency Resolution Issue #17011

Nitish-UIUX opened this issue Feb 8, 2025 · 3 comments

Comments

@Nitish-UIUX
Copy link

The error occurred while running npx create-react-app my-app. The installation process failed due to an "ERESOLVE unable to resolve dependency tree" issue.

Image

@samuel871211
Copy link

The latest create-react-app (CRA) installs React 19 by default, but @testing-library/[email protected] has a peer dependency requirement of React ^18.0.0, causing dependency conflicts. Using --template minimal resolves this issue as it creates a project without testing libraries, avoiding the version mismatch between React 19 and testing dependencies.

Workaround:
Use npx create-react-app cra --template minimal to create a project without testing dependencies.

@kerosan
Copy link

kerosan commented Feb 14, 2025

no matching version found for @babel/plugin-transform-for-of@^7.26.9 =(

@kerosan
Copy link

kerosan commented Feb 14, 2025

and minimal template not working

Image

need some refactoring

import React from 'react';
// import ReactDOM from 'react-dom';
import App from './App';
import { createRoot } from 'react-dom/client';


// ReactDOM.render(
//   <React.StrictMode>
//     <App />
//   </React.StrictMode>,
//   document.getElementById('root')
// );


const domNode = document.getElementById('root');
const root = createRoot(domNode);
root.render(<React.StrictMode><App /></React.StrictMode>);

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

No branches or pull requests

3 participants