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

latest version 0.4.7 not working with react 18 #22

Open
DoomTaper opened this issue Dec 9, 2022 · 3 comments
Open

latest version 0.4.7 not working with react 18 #22

DoomTaper opened this issue Dec 9, 2022 · 3 comments

Comments

@DoomTaper
Copy link

getting below error while running npm ci

next_blix_gg git:(main) npm ci
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR!   peer react@">=18" from @chakra-ui/[email protected]
npm ERR!   node_modules/@chakra-ui/accordion
npm ERR!     @chakra-ui/accordion@"2.1.2" from @chakra-ui/[email protected]
npm ERR!     node_modules/@chakra-ui/react
npm ERR!       @chakra-ui/react@"^2.3.7" from the root project
npm ERR!       1 more (chakra-ui-markdown-renderer)
npm ERR!   89 more (@chakra-ui/alert, @chakra-ui/checkbox, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from [email protected]
npm ERR! node_modules/react-brackets
npm ERR!   react-brackets@"^0.4.7" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0" from [email protected]
npm ERR!   node_modules/react-brackets
npm ERR!     react-brackets@"^0.4.7" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/ayushsingh/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ayushsingh/.npm/_logs/2022-12-09T09_54_03_918Z-debug-0.log
➜  next_blix_gg git:(main) 

Below is my package.json

{
  "name": "app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@chakra-ui/react": "^2.3.7",
    "@emotion/react": "^11.10.5",
    "@emotion/styled": "^11.10.5",
    "chakra-ui-markdown-renderer": "^4.1.0",
    "framer-motion": "^6.5.1",
    "gray-matter": "^4.0.3",
    "markdown-it": "^12.3.2",
    "next": "13.0.1",
    "react": "18.2.0",
    "react-brackets": "^0.4.7",
    "react-dom": "18.2.0",
    "react-icons": "^4.6.0",
    "react-swipeable-views": "^0.14.0"
  }
}

@Oliver-Looney
Copy link
Contributor

#27 pr should fix this issue

@snzow
Copy link

snzow commented Sep 3, 2023

for now just
npm install --save react-brackets --legacy-peer-deps

@josefsjunior
Copy link

Tks @snzow , This worked for me

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

4 participants