This repository was archived by the owner on Jul 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Cannot read property 'request' of undefined at transform #112
Copy link
Copy link
Open
Description
| const module = dependency.request || dependency.options.request; |
Hi, I dont examinated which module did not had options. But probably it was our company custom components package. Or maybe it was the package named "0" (string zero) that npm suggested me to install. Anyway it should be nice to handle also that kind or errors at some layer.
TypeError: Cannot read property 'request' of undefined
at transform (/srv/www/node_modules/friendly-errors-webpack-plugin/src/transformers/moduleNotFound.js:17:61)
at transform (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:28:45)
at Array.reduce (<anonymous>)
at applyTransformations (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:29:56)
at Array.map (<anonymous>)
at processErrors (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:31:35)
at FriendlyErrorsWebpackPlugin.displayErrors (/srv/www/node_modules/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:97:29)
at doneFn (/srv/www/node_modules/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:52:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook (/srv/www/node_modules/tapable/lib/Hook.js:154:20)
at /srv/www/node_modules/webpack/lib/Compiler.js:304:22
at Compiler.emitRecords (/srv/www/node_modules/webpack/lib/Compiler.js:499:39)
at /srv/www/node_modules/webpack/lib/Compiler.js:298:10
at /srv/www/node_modules/webpack/lib/Compiler.js:485:14
at _next0 (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at eval (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
at /srv/www/node_modules/assets-webpack-plugin/dist/index.js:156:9
at /srv/www/node_modules/assets-webpack-plugin/dist/lib/output/createQueuedWriter.js:16:7
at /srv/www/node_modules/assets-webpack-plugin/dist/lib/output/createOutputWriter.js:74:13
at /srv/www/node_modules/graceful-fs/graceful-fs.js:57:14
at FSReqCallback.oncomplete (fs.js:154:23)
error Command failed with exit code 1.
Thanks.
I had already solved the issue hacky way, this is just report.
Metadata
Metadata
Assignees
Labels
No labels