控制台警告:[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider...

控制台警告:

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

警告原因:

我是用的mongodb驱动版本号是4.4.26,通过 mongod --version 查看。警告信息表示正在使用的mongodb驱动程序版本已经不再支持 useNewUrlParser 和 useUnifiedTopology 选项。这在4.0.0版本之后已经被弃用了。我多此一举加了这两个选项,直接删除重新连接即可解决警告

posted @ 2024-06-05 11:57  淡然置之  阅读(47)  评论(0编辑  收藏  举报