dist folder not generated
jaichandra opened this issue · comments
I tried building the project locally, but can't get the /dist
directory generated. npm start
and npm run build
runs with lot of errors and no /dist folder generated. I did run npm install
before building. Please suggest. Below is a snapshot of the console log:
ERROR in ./src/history.js
Module not found: Error: Cannot resolve module 'history/lib/createHashHistory' in /Users/.../gh-board/src
@ ./src/history.js 7:25-65
ERROR in ./~/react-router/lib/Router.js
Module not found: Error: Cannot resolve module 'history/lib/createHashHistory' in /Users/.../gh-board/node_modules/react-router/lib
@ ./~/react-router/lib/Router.js 23:35-75
ERROR in ./~/react-router/lib/useRoutes.js
Module not found: Error: Cannot resolve module 'history/lib/Actions' in /Users/.../gh-board/node_modules/react-router/lib
@ ./~/react-router/lib/useRoutes.js 15:25-55
ERROR in ./~/react-router/lib/useRoutes.js
Module not found: Error: Cannot resolve module 'history/lib/useQueries' in /Users/.../gh-board/node_modules/react-router/lib
@ ./~/react-router/lib/useRoutes.js 17:28-61
ERROR in ./~/react-router/lib/match.js
Module not found: Error: Cannot resolve module 'history/lib/createMemoryHistory' in /Users/.../gh-board/node_modules/react-router/lib
@ ./~/react-router/lib/match.js 13:37-79
ERROR in ./~/react-router/lib/match.js
Module not found: Error: Cannot resolve module 'history/lib/useBasename' in /Users/.../gh-board/node_modules/react-router/lib
@ ./~/react-router/lib/match.js 17:29-63
Child extract-text-webpack-plugin:
chunk {0} extract-text-webpack-plugin-output-filename 182 kB [rendered]
[0] ./~/css-loader!./~/less-loader!./style/app.less 158 kB {0} [built]
[61] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
[62] ./~/octicons/octicons/octicons.eot 91 bytes {0} [built]
[63] ./~/octicons/octicons/octicons.woff?v=22dab811a5aa6c7ae0f71074a3480b993f7ef79b 22.8 kB {0} [built]
[64] ./~/octicons/octicons/octicons.ttf?v=22dab811a5aa6c7ae0f71074a3480b993f7ef79b 91 bytes {0} [built]
[65] ./~/octicons/octicons/octicons.svg?v=22dab811a5aa6c7ae0f71074a3480b993f7ef79b 58 bytes {0} [built]
webpack: bundle is now VALID.
got it working.. it was an issue with history
version. had to install history@1.17.0
and it worked.
Thanks for figuring out that solution! I will update the dependencies soon so this should no longer be an issue.
The dependencies should now be up-to-date (thanks to #29)