这是在将react-addons-css-transition-group
npm包保存为依赖项后立即开始的。
然后我去了一个更新的兔子洞,添加&删除各种依赖项以及确保所有与响应相关的依赖项共享相同的版本控制。我想我在添加react-addons-css-transition-group
依赖项之前回到了原来的位置,除了更新之外,我仍然遇到此错误,我无法在网上找到与之相关的任何信息。
package.json如果有帮助:
{
"name": "",
"version": "0.1.0",
"author": "",
"description": "",
"license": "MIT",
"repository": {
"type": "git",
"url": ""
},
"main": "server.js",
"scripts": {
"lint": "eslint --ext .js,.jsx --ignore-pattern public",
"start": "brunch watch --server",
"knex": "knex",
"heroku-postbuild": "brunch build --production; knex migrate:latest",
"nf": "nf start"
},
"dependencies": {
"auto-reload-brunch": "^2.7.1",
"axios": "^0.14.0",
"babel-brunch": "^6.0.5",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"bcrypt": "^0.8.7",
"bcrypt-as-promised": "^1.1.0",
"body-parser": "^1.15.2",
"boom": "^4.0.0",
"brunch": "^2.9.1",
"clean-css-brunch": "^2.0.0",
"cookie-parser": "^1.4.3",
"dotenv": "^2.0.0",
"express": "^4.14.0",
"express-validation": "^1.0.1",
"humps": "^1.1.0",
"javascript-brunch": "^2.0.0",
"joi": "^9.0.4",
"jsonwebtoken": "^7.1.9",
"knex": "^0.12.0",
"material-ui": "^0.16.3",
"morgan": "^1.7.0",
"multer": "1.1.0",
"pg": "^6.1.0",
"react": "^15.4.1",
"react-cookie": "^0.4.8",
"react-dom": "^15.4.1",
"react-router": "^2.8.0",
"react-tap-event-plugin": "^2.0.0",
"sass-brunch": "^2.7.0",
"weak-key": "^1.0.0",
"xml2js": "^0.4.17"
},
"devDependencies": {
"eslint": "^3.2.2",
"eslint-config-ryansobol": "^8.0.0",
"foreman": "^2.0.0"
},
"engines": {
"node": "7.2.0"
}
}
答案 0 :(得分:1)
我能够通过删除node-modules文件夹并重新导入所有依赖项来解决此问题。
我的依赖项和devDependencies部分在重新导入后看起来像这样:
"dependencies": {
"lodash": "^4.17.2",
"material-ui": "^0.16.5",
"react": "^15.4.1",
"react-addons-perf": "^15.4.1",
"react-addons-test-utils": "^15.4.1",
"react-dom": "^15.4.1",
"react-tap-event-plugin": "^2.0.1"
},
"devDependencies": {
"auto-reload-brunch": "^2.0.0",
"babel-brunch": "~6.0.0",
"babel-preset-es2015": "~6.9.0",
"babel-preset-react": "~6.11.1",
"brunch": "^2.4.0",
"clean-css-brunch": "^2.0.0",
"css-brunch": "^2.0.0",
"javascript-brunch": "^2.0.0",
"uglify-js-brunch": "^2.0.0"
}
答案 1 :(得分:1)
这是由Brunch bug引起的 我们在React 15.4.2中添加了一个解决方法,但不能保证它不会再次中断。