1
resposta

Erro ao executar o npm run build-prod

Toda vez que digito o npm run build-prod aparece este erro abaixo:

[webpack-cli] TypeError: compiler.plugin is not a function at BabiliPlugin.apply (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/babili-webpack-plugin/lib/index.js:41:16) at createCompiler (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack/lib/webpack.js:71:12) at create (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack/lib/webpack.js:118:16) at webpack (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack/lib/webpack.js:126:47) at WebpackCLI.f [as webpack] (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack/lib/index.js:54:15) at WebpackCLI.createCompiler (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack-cli/lib/webpack-cli.js:1847:29) at async WebpackCLI.buildCommand (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack-cli/lib/webpack-cli.js:1954:20) at async Command. (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack-cli/lib/webpack-cli.js:735:25) at async Promise.all (index 1) at async Command. (/home/davi/Desktop/Formação Angular/2 - Conhecer o Angular e trabalhar com Webpack/01-projeto-webpack/projeto-webpack/client/node_modules/webpack-cli/lib/webpack-cli.js:1284:13)

1 resposta

Fala ai Davi, tudo bem? Consegue compartilhar o código completo do arquivo de configuração? Assim eu dou uma olhada no que pode ser o problema.

Espero ter ajudado.