
Carlos Daniel Ramirez Alvarenga
PreguntaBuenas compañeros, me sale este error al ejecutar npm run build, pero sigo sin poder entender porque.
$ npm run build > PlatziVideo@1.0.0 build C:\Users\Daniel\PlatziVideo > webpack --mode production assets by status 1.16 KiB [cached] 1 asset ./src/index.js 39 bytes [built] [code generated] [1 error] ERROR in ./src/index.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Unknown option: .preset. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options. at throwUnknownError (C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\validation\options.js:124:27) at C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\validation\options.js:109:5 at Array.forEach (<anonymous>) at validateNested (C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\validation\options.js:85:21) at validate (C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\validation\options.js:76:10) at C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\config-chain.js:205:34 at cachedFunction (C:\Users\Daniel\PlatziVideo\node_modules\@babel\core\lib\config\caching.js:62:27) at cachedFunction.next (<anonymous>) at evaluateSync (C:\Users\Daniel\PlatziVideo\node_modules\gensync\index.js:244:28) at sync (C:\Users\Daniel\PlatziVideo\node_modules\gensync\index.js:84:14) webpack 5.1.3 compiled with 1 error in 626 ms npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! PlatziVideo@1.0.0 build: `webpack --mode production` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the PlatziVideo@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\Daniel\AppData\Roaming\npm-cache\_logs\2020-10-18T23_09_10_547Z-debug.log

Massimo Di Berardino
Hola Daniel, este error
This is probably not a problem with npm
node-modules
npm install

John Cardenas
Hola, sube tu archivo package.json para saber si está todo bien ahí. Al parecer hay un error con el script build :)