Buenos días desarrolladores. Recibo este error de webpack en mi consola:
(node:11612) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'compiler' of undefined at /Users/.../node_modules/ts-loader/dist/after-compile.js:19:25 at /Users/.../node_modules/ts-loader/dist/instances.js:203:93 at Hook.eval [as call] (eval at create (/Users/.../node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:5:1) at Hook.CALL_DELEGATE [as _call] (/Users/.../node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14) at /Users/.../node_modules/webpack/lib/Compilation.js:3060:40 at eval (eval at create (/Users/.../node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1) at eval (eval at create (/Users/.../node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1) at /Users/.../node_modules/webpack/lib/SourceMapDevToolPlugin.js:549:10 at /Users/.../node_modules/neo-async/async.js:2830:7 at Object.each (/Users/.../node_modules/neo-async/async.js:2857:9) (node:11612) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:11612) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Esto ocurrió después de actualizar mi paquete web, webpack-cli y webpack-dev-server. Las versiones actuales son:
{ ... "devDependencies": { ..., "prettier": "2.1.2", "sass": "1.32.2", "sass-loader": "10.1.0", "style-loader": "2.0.0", "ts-loader": "8.0.11", "ts-node": "9.0.0", "typescript": "4.0.5", "webpack": "5.68.0", "webpack-cli": "4.9.2", "webpack-dev-server": "4.9.0" } } después de esta actualización, eliminé mi paquete node_module y los paquetes package_lock.json, por lo tanto, después de ejecutar npm install , se reconstruyeron, pero aún persiste este error.
¿Alguien podría darme una idea de por qué este error? ¡¡Gracias por adelantado!!