chranmc2
PreguntaHola buenas noches, tengo el siguiente error
Entrypoint main = bundle.js
[0] ./src/index.js 2.59 KiB {0} [built] [failed] [1 error]
ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module ‘@abel/babel-preset-preset-env’ from 'C:\react\PlatziVideo’
at Function.module.exports [as sync] (C:\react\PlatziVideo\node_modules\resolve\lib\sync.js:74:15)
at resolveStandardizedName (C:\react\PlatziVideo\node_modules@babel\core\lib\config\files\plugins.js:101:31)
at resolvePreset (C:\react\PlatziVideo\node_modules@babel\core\lib\config\files\plugins.js:58:10)
at loadPreset (C:\react\PlatziVideo\node_modules@babel\core\lib\config\files\plugins.js:77:20)
at createDescriptor (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-descriptors.js:154:9)
at items.map (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-descriptors.js:109:50)
at Array.map (<anonymous>)
at createDescriptors (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-descriptors.js:109:29)
at createPresetDescriptors (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-descriptors.js:101:10)
at presets (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-descriptors.js:47:19)
at mergeChainOpts (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-chain.js:320:26)
at C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-chain.js:283:7
at buildRootChain (C:\react\PlatziVideo\node_modules@babel\core\lib\config\config-chain.js:120:22)
at loadPrivatePartialConfig (C:\react\PlatziVideo\node_modules@babel\core\lib\config\partial.js:85:55)
at Object.loadPartialConfig (C:\react\PlatziVideo\node_modules@babel\core\lib\config\partial.js:110:18)
at Object.<anonymous> (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:144:26)
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:3:103)
at _next (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:5:194)
at C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:5:364
at new Promise (<anonymous>)
at Object.<anonymous> (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:5:97)
at Object._loader (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:224:18)
at Object.loader (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:60:18)
at Object.<anonymous> (C:\react\PlatziVideo\node_modules\babel-loader\lib\index.js:55:12)
Child html-webpack-plugin for “index.html”:
1 asset
Entrypoint undefined = ./index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html 169 bytes {0} [built]
Manuel Ojeda
Por lo que estoy leyendo el error está en:
@abel/babel-preset-preset-envPuede que no esté instalado el plugin adecuadamente, revisa en tu .babelrc que diga
@babel/babel-preset-preset-envSaludos.
