(node:71307) [DEP0079] DeprecationWarning

前端 未结 8 1706
故里飘歌
故里飘歌 2021-01-17 21:11

Try to update MongoDB document Getting Deprecation Warning as

(node:71307) [DEP0079] DeprecationWarning: Custom inspection function on Objects via

8条回答
  •  梦毁少年i
    2021-01-17 21:25

    You have to not worry about this error this is mongoose warning . Actually Mongoose use inspect() to debug output . they will update it may be before node 12.x . For now it is safe to use this.

    Nothing to worry.

    Check this info. https://nodejs.org/api/deprecations.html#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect

    DEP0079: Custom inspection function on Objects via .inspect()# Type: Runtime

    Using a property named inspect on an object to specify a custom inspection function for util.inspect() is deprecated. Use util.inspect.custom instead. For backward compatibility with Node.js prior to version 6.4.0, both may be specified.

    If you want more detail, see this . This is under progress. Warning will come in node 10

    https://github.com/Automattic/mongoose/issues/6420

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题