[英]Uncaught TypeError: The "original" argument must be of type Function
when I start the react application, using npm start
, I am encountering this error, there are lot of questions around this error, but I am unable to understand the root cause of this error.当我使用npm start
启动反应应用程序时,我遇到了这个错误,围绕这个错误有很多问题,但我无法理解这个错误的根本原因。 Please Explain.请解释。
Uncaught TypeError: The "original" argument must be of type Function
at Object.promisify (util.js:601:1)
at ./node_modules/env-cmd/dist/parse-rc-file.js (parse-rc-file.js:7:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./node_modules/env-cmd/dist/get-env-vars.js (get-env-vars.js:3:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./node_modules/env-cmd/dist/index.js (index.js:6:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./src/components/layout_components/exec_layout/choicePageLayout.js (view-all-customers.svg:1:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./src/components/layout_components/exec_layout/indexPageLayout.js (demoLayout.js:424:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./src/components/layout_components/login/login.js (login.css?7228:45:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at ./src/index.js (index.css?ac04:45:1)
at __webpack_require__ (bootstrap:789:1)
at fn (bootstrap:150:1)
at 1 (helper.js:12:1)
at __webpack_require__ (bootstrap:789:1)
at checkDeferredModules (bootstrap:45:1)
at Array.webpackJsonpC
It would be really helpful if you provide the code that is causing this error...如果您提供导致此错误的代码,那将非常有帮助...
My guess, after looking at the error would be, that you are calling some function somewhere in a parameter of another function at parse-rc-file.js:7:1
instead of passing the function directly.我的猜测是,在查看错误后,您在parse-rc-file.js:7:1
的另一个 function 的参数中某处调用了一些 function,而不是直接传递 ZC1C425268E68385D1AB507。
eg: someFnExpectingACallback(myFunction())
instead of someFnExpectingACallback(myFunction)
例如: someFnExpectingACallback(myFunction())
而不是someFnExpectingACallback(myFunction)
Take a look at callback functions看看回调函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.