> petshop@1.0.0 build D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP
> webpack --config webpack.config.js
D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack-cli\bin\cli.js:281
throw err;
^
TypeError: Cannot read property 'tap' of undefined
at HtmlWebpackPlugin.apply (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\html-webpack-plugin\index.js:41:31)
at webpack (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack\lib\webpack.js:51:13)
at processOptions (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack-cli\bin\cli.js:272:16)
at yargs.parse (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack-cli\bin\cli.js:364:3)
at Object.parse (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\yargs\yargs.js:567:18)
at D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack-cli\bin\cli.js:49:8
at Object.<anonymous> (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack-cli\bin\cli.js:366:3)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (D:\Documentos\Curso Alura\JS na Web - Criando uma SPA com JavaScript puro\PETSHOP\node_modules\webpack\bin\webpack.js:156:2)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! petshop@1.0.0 build: `webpack --config webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the petshop@1.0.0 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\naaya\AppData\Roaming\npm-cache\_logs\2021-02-23T20_44_01_388Z-debug.log
O que devo fazer?