sorrycc / roadhog

🐷 Cli tool for creating react apps, configurable version of create-react-app.
2.72k stars 342 forks source link

when roadhog upgrade to v1.0.2 ,npm goes wrong~ #367

Closed terminalqo closed 7 years ago

terminalqo commented 7 years ago

Environment(required) | 环境(必填)

E:\ycp_wx>npm run build

> @ build E:\ycp_wx
> roadhog build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve 'react-router/lib/hashHistory' in 'E:\ycp_wx\node_modules\dva
\lib'

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build: `roadhog build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-08-08T07_55_28_911Z-debug.log

What do you expected?(预期的正常效果)

run npm run build goes well.

What happen?(发生了何种非正常现象)

when roadhog upgrade to v1.0.2, something wrong,and I dont know how to fix it.

Re-producible online demo (可复现的在线demo)

none