用https://github.com/sorrycc/bl... 例子搭建dva项目的时候
命令 $ dva g route users
报错
create routeComponent src/routes/Users.js, src/routes/Users.css
TypeError: root.findRouters(...).getRouterInfo is not a function
at transform (C:\Users\nenawan\AppData\Roaming\npm\node_modules\dva-cli\node_modules\dva-ast\lib\transform.js:42:32)
at exports.default (C:\Users\nenawan\AppData\Roaming\npm\node_modules\dva-cli\node_modules\dva-ast\lib\api\index.js:46:36)
at C:\Users\nenawan\AppData\Roaming\npm\node_modules\dva-cli\lib\generate.js:92:27
at generate (C:\Users\nenawan\AppData\Roaming\npm\node_modules\dva-cli\lib\generate.js:108:11)
at Object.<anonymous> (C:\Users\nenawan\AppData\Roaming\npm\node_modules\dva-cli\bin\dva-generate:11:27)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
元芳怎么了
相关分类