내 패키지 JSON에서 16.2.0으로 반응하고 react-dom을 변경하고 다음 오류를 수신했습니다.모듈이 "react/lib/ReactComponentTreeHook"오류를 찾을 수 없습니다.
Uncaught Error: Cannot find module "react/lib/ReactComponentTreeHook"
는 새로운 프로젝트를 시작하여 문제를 좁힐 작은 덩어리에서 종속성을 추가하고, 이미 스택 오버 플로우에서 볼 거의 모든 옵션을 시도하고, 모든 것을 다시 설치, 내 node_modules을 삭제 시도했습니다. 다음과 같이
내 package.json은 다음과 같습니다
{
"name": "",
"version": "0.0.1",
"description": "",
"main": "index.js",
"repository": {
"type": "git",
"url": "..."
},
"scripts": {
"dev": "webpack -d --watch",
"build": "webpack -p"
},
"dependencies": {
"axios": "^0.17.1",
"body-parser": "^1.18.2",
"classnames": "^2.2.5",
"connect-mongo": "^2.0.0",
"cookie-parser": "^1.4.3",
"express": "^4.16.2",
"express-session": "^1.15.6",
"moment": "^2.19.3",
"mongoose": "^4.13.6",
"multer": "^1.3.0",
"node-sass": "^4.7.2",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
"qs": "^6.5.1",
"react": "^16.2.0",
"react-click-outside": "^3.0.0",
"react-dom": "16.2.0",
"react-redux": "5.0.6",
"redux": "3.7.2",
"redux-logger": "^3.0.6",
"redux-promise-middleware": "^5.0.0",
"redux-thunk": "^2.2.0",
"underscore": "^1.8.3"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"css-loader": "^0.28.7",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.5",
"redux-devtools": "^3.4.1",
"sass-loader": "^6.0.6",
"serve": "^6.4.1",
"style-loader": "^0.19.0",
"svg-sprite-webpack-plugin": "^1.1.0",
"svg-spritemap-webpack-plugin": "^1.0.3",
"url-loader": "^0.6.2",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"webpack": "^3.10.0"
},
"author": "",
"license": "ISC",
"homepage": ""
}
을 erroring 라인에 중단 점을 배치 한 후에는 스택 추적 양식에게 반응-DOM의 수입을 오는 것 같다,하지만에있는 경우 반응하는 최신 버전은 내가 왜이 문제를 가지고 있는지 이해하지 못합니다.
내가 생각할 수있는 옵션이 없으면 도움이 될 것입니다. 감사.