Lemoncode/webpack-by-sample

06 Webpack Config Reload sample doesnt't compile or run

lagp opened this issue · 0 comments

lagp commented

An error is produced when you try to execute npm start or npm run build.

npm start

> webpack-config-reload@1.0.0 start C:\Users\lgarcia\Documents\Proyectos\practicas\webpack-by-sample\version 4\05 Misc\00 Webpack Config Reload
> nodemon --watch webpack.config.js --exec "webpack-dev-server --mode development"

[nodemon] 1.18.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: webpack.config.js
[nodemon] starting `webpack-dev-server --mode development`
C:\Users\lgarcia\Documents\Proyectos\practicas\webpack-by-sample\version 4\05 Misc\00 Webpack Config Reload\node_modules\webpack-cli\bin\config-yargs.js:89
                                describe: optionsSchema.definitions.output.properties.path.description,
                                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (C:\Users\lgarcia\Documents\Proyectos\practicas\webpack-by-sample\version 4\05 Misc\00 Webpack Config Reload\node_modules\webpack-cli\bin\config-yargs.js:89:48)
    at Object.<anonymous> (C:\Users\lgarcia\Documents\Proyectos\practicas\webpack-by-sample\version 4\05 Misc\00 Webpack Config Reload\node_modules\webpack-dev-server\bin\webpack-dev-server.js:84:40)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
[nodemon] app crashed - waiting for file changes before starting...