reactjs 使用React 18时与React-典型的依赖性冲突[已关闭]

lf5gs5x2  于 2023-03-01  发布在  React
关注(0)|答案(1)|浏览(199)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
5天前关闭。
Improve this question
我是一个编程新手,我在一个网站上工作,想把它上传到git上,但是很不幸,我无法解决依赖冲突,我不想使用--force--legacy-peer-deps
有谁能帮我解释一下吗?

"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-regular-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.2.2",
"multer": "^1.4.5-lts.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-owl-carousel": "^2.3.3",
"react-phone-number-input": "^3.2.13",
"react-router-dom": "^6.6.1",
"react-scripts": "5.0.1",
"react-toastify": "^9.1.1",
"react-typical": "^0.1.3",
"rxjs": "^7.8.0",
"styled-components": "^5.3.6",
"web-vitals": "^2.1.4"

}
以下是我遇到的依赖项列表和错误DEPENDENCIES IMAGEERRORS IMAGE

bqucvtff

bqucvtff1#

软件包"react-typical"不支持React v18。
要么删除该软件包并找到替代软件包,要么降级到React v16并重新安装所有软件包。
参考:https://github.com/catalinmiron/react-typical/issues/85

相关问题