问答详情
源自:-

Cannot read property 'apply' of undefined

http://img1.mukewang.com/617f9f0100014f1e16280941.jpg

(node:12552) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'apply' of undefined

    at Sequential.add (D:\yxy\garbage-classification system\node_modules\@tensorflow\tfjs-layers\dist\tf-layers.node.js:20292:38)

    at defineModel (D:\yxy\garbage-classification system\train\index.js:33:11)

    at runMicrotasks (<anonymous>)

    at processTicksAndRejections (internal/process/task_queues.js:95:5)

    at async main (D:\yxy\garbage-classification system\train\index.js:87:17)

(Use `node --trace-warnings ...` to show where the warning was created)

(node:12552) 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:12552) [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.

PS D:\yxy\garbage-classification system> ^C

PS D:\yxy\garbage-classification system>


这是什么报错啊


提问者:慕函数1189435 2021-11-01 16:02

个回答