-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
My solution was to put different versions of react requirement, on dev vs production:
"dependencies": {
"@smooth-ui/core-sc": "9.0.2",
"create-react-class": "15.7.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"styled-components": "^4.1.2",
"styled-icons": "^5.4.0"
},
"devDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-flip-move": "^3.0.2",
"react-highlight.js": "^1.0.7",
"shadow-cljs": "2.20.2"
}
Initial error:
npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: Cheffy@0.0.1
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-highlight.js@1.0.7
npm ERR! node_modules/react-highlight.js
npm ERR! dev react-highlight.js@"^1.0.7" from the root project
rdmolony
Metadata
Metadata
Assignees
Labels
No labels