我正在使用adminlte-reactjs
做一个示例,请按照此link进行操作。但我遇到了一个问题:
/adminlte-reactjs/node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js 未找到模块:无法解决< / lib / ReactComponentTreeHook'在 ' C:\用户\ NEM \文件\ reactjs \管理模板\ node_modules \ adminlte-reactjs \ node_modules \反应-DOM \ lib中'
的package.json :
{
"name": "admin-template",
"version": "0.1.0",
"private": true,
"dependencies": {
"adminlte-reactjs": "^1.0.6",
"apisauce": "^0.14.3",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-router": "^4.2.0",
"react-scripts": "1.1.4",
"redux-logger": "^3.0.6",
"redux-saga": "^0.16.0",
"reduxsauce": "^0.7.0",
"styled-components": "^3.2.6"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
希望我能得到家伙的解决方案,谢谢
答案 0 :(得分:0)
尝试:
react-native-git-upgrade
或:
rm -rf node_modules/react
npm i react@16.0.0-alpha.6 -S