Closed sahil-bansal-sb closed 5 years ago
I cloned the repo, and tried to build it, npm run buildDev
npm run buildDev
It Results:
> expack@1.0.0 buildDev /home/sahilbansal/Downloads/expack-master > rm -rf dist && webpack --mode development --config webpack.server.config.js && webpack --mode development --config webpack.dev.config.js Hash: 582bd3137d42f12577c7 Version: webpack 4.28.3 Time: 421ms Built at: 05/06/2019 4:03:38 PM Asset Size Chunks Chunk Names server.js 10.4 KiB server [emitted] server Entrypoint server = server.js [./src/server/server-dev.js] 928 bytes {server} [built] [./webpack.dev.config.js] 1.34 KiB {server} [built] [express] external "express" 42 bytes {server} [built] [html-webpack-plugin] external "html-webpack-plugin" 42 bytes {server} [built] [path] external "path" 42 bytes {server} [built] [webpack] external "webpack" 42 bytes {server} [built] [webpack-dev-middleware] external "webpack-dev-middleware" 42 bytes {server} [built] [webpack-hot-middleware] external "webpack-hot-middleware" 42 bytes {server} [built] Hash: e23a78602af73e67abac Version: webpack 4.28.3 Time: 1020ms Built at: 05/06/2019 4:03:40 PM Asset Size Chunks Chunk Names ./index.html 357 bytes [emitted] dfe07a62c3eb4990566f19a74aa53aef.jpg 106 KiB [emitted] main.js 137 KiB main [emitted] main main.js.map 145 KiB main [emitted] main Entrypoint main = main.js main.js.map [0] multi webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000 ./src/index.js 40 bytes {main} [built] [./node_modules/css-loader/index.js!./src/css/style.css] ./node_modules/css-loader!./src/css/style.css 549 bytes {main} [built] [./node_modules/webpack-hot-middleware/client-overlay.js] (webpack)-hot-middleware/client-overlay.js 2.16 KiB {main} [built] [./node_modules/webpack-hot-middleware/client.js?path=/__webpack_hmr&timeout=20000] (webpack)-hot-middleware/client.js?path=/__webpack_hmr&timeout=20000 7.59 KiB {main} [built] [./node_modules/webpack-hot-middleware/process-update.js] (webpack)-hot-middleware/process-update.js 4.26 KiB {main} [built] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {main} [built] [./src/css/style.css] 1.06 KiB {main} [built] [./src/img/bg.jpg] 82 bytes {main} [built] [./src/index.js] 223 bytes {main} [built] [./src/js/logger.js] 101 bytes {main} [built] [1 warning] + 14 hidden modules WARNING in ./src/js/logger.js Module Warning (from ./node_modules/eslint-loader/index.js): /home/sahilbansal/Downloads/expack-master/src/js/logger.js 1:27 error Unexpected console statement no-console 1:27 error 'console' is not defined no-undef ✖ 2 problems (2 errors, 0 warnings) @ ./src/index.js 1:0-37 4:0-10 @ multi webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000 ./src/index.js Child html-webpack-plugin for "index.html": 1 asset Entrypoint undefined = ./index.html [./node_modules/html-webpack-plugin/lib/loader.js!./src/html/index.html] 346 bytes {0} [built]
Now, when I got my on the article from @bengrunfeld on medium ( link ), it is clearly mentioned there.
@sahil-bansal-sb Cool. Let me know if you need any extra help with this issue.
I cloned the repo, and tried to build it,
npm run buildDev
It Results: