I am in the process of learning React by reading the Fullstack React book.
My setup:
node -v
v14.15.3
npm -v
7.3.0
Following the styleguidist install guide I ran:
npm -i -D webpack react-styleguidist
This installed:
- webpack v5.11.0
- react-styleguidist 11.1.5
There appears to be some sort of conflict between:
This appears to be down to a peer-dependency in the react-simple-code-editor on React 16 baseline, whereas react-styleguidist uses React 17.
package.json for react-simple-code-editor:
....
"peerDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
I raised the issue here but never heard back.
So I wondered if anyone here on SO with more in depth knowledge of React 16 to 17 enhancements can answer whether the react/react-dom in the react-simple-code-editor can be relaxed to use 16+? If so what is the syntax?
More info on Peer Dependencies here.
question from:
https://stackoverflow.com/questions/65843175/how-can-i-get-react-styleguidist-to-install-correctly-and-get-past-the-peer-depe 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…