1
resposta

Não estou conseguindo rodar "npm run build-dev"

client@1.0.0 build-dev C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client webpack --config webpack.config.js

Hash: 8ef502cd6abdfd56e56e Version: webpack 3.1.0 Time: 732ms Asset Size Chunks Chunk Names bundle.js 4.58 kB 0 [emitted] main [0] ./app-src/app.js 2.11 kB {0} [built] [failed] [1 error]

ERROR in ./app-src/app.js Module build failed: ReferenceError: Unknown plugin "@babel/plugin-proposal-decorators" specified in "C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\.babelrc" at 0, attempted to resolve relative to "C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client" at C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\options\option-manager.js:180:17 at Array.map () at Function.normalisePlugins (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20) at OptionManager.mergeOptions (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36) at OptionManager.init (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12) at File.initOptions (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\index.js:212:65) at new File (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\file\index.js:135:24) at Pipeline.transform (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-core\lib\transformation\pipeline.js:46:16) at transpile (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-loader\lib\index.js:49:20) at Object.module.exports (C:\Users\Ricardo\Documents\Alura-Cursos\FrontEnd\webpack\projeto-webpack\client\node_modules\babel-loader\lib\index.js:171:20) npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! client@1.0.0 build-dev: webpack --config webpack.config.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the client@1.0.0 build-dev 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\Ricardo\AppData\Roaming\npm-cache_logs\2020-05-25T23_27_10_196Z-debug.log

1 resposta

Oi, Ricardo, tudo bem?

Você rodou o comando npm uninstall babel-plugin-transform-es2015-modules-systemjs --save-dev? Você poderia compartilhar conosco o seu webpack.config.js e o package.json?