为了账号安全,请及时绑定邮箱和手机立即绑定

store 为空 cache为定义,cache显示未定义,是怎么回事?

"devDependencies": {
  "babel-core": "6.26.3",
  "babel-loader": "7.1.4",
  "babel-plugin-transform-class-properties": "6.24.1",
  "babel-plugin-transform-decorators-legacy": "1.3.5",
  "babel-preset-env": "1.7.0",
  "babel-preset-react": "^6.24.1",
  "webpack": "4.12.1",
  "webpack-cli": "3.0.8"
},
"dependencies": {
  "mobx": "5.0.3",
  "mobx-react": "5.2.3",
  "prop-types": "15.6.2",
  "react": "16.4.1",
  "react-dom": "16.4.1"
}


正在回答

2 回答

猜测因为你的 webpack.config.js 中对于babel-loader的 plugins 顺序写反了,正确的顺序是 ['transform-decorators-legacy', 'transform-class-properties'],请参见 https://www.imooc.com/qadetail/264047 谢谢。
0 回复 有任何疑惑可以回复我~

是这样的 对 没错

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

store 为空 cache为定义,cache显示未定义,是怎么回事?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信