You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not compatible with the latest version of mongodb please upgrade the package i am facing the issue of
BSONVersionError: Unsupported BSON version, bson types must be from bson 5.0 or later
See #1547, allthough it looks to me as if this specific problem is somewhere else in your code and not specifically related to agenda. In other words, even if agenda provided support for mongodb@5, you will probably still see this error message.
I've experienced a similar error as yours when using mongoose@6 ObejctId's - which still uses bson@4 - with the new mongodb@5 driver. You can't use bson@4 ObjectId's with mongodb@5 and vice versa. If you use mongoose, I would suggest upgrading it to version 7.
Not compatible with the latest version of mongodb please upgrade the package i am facing the issue of
BSONVersionError: Unsupported BSON version, bson types must be from bson 5.0 or later
these are the current dependency of latest agenda
"agenda": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/agenda/-/agenda-5.0.0.tgz",
"integrity": "sha512-jOoa7PvARpst/y2PI8h0wph4NmcjYJ/4wzFhQcHUbNgN+Hte/9h/MzKE0ZmHfIwdsSlnv3rhbBQ3Zd/gwFkThg==",
"requires": {
"cron-parser": "^3.5.0",
"date.js": "~0.3.3",
"debug": "~4.3.4",
"human-interval": "~2.0.1",
"moment-timezone": "~0.5.37",
"mongodb": "^4.11.0"
},
"dependencies": {
"bson": {
"version": "4.7.2",
"resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz",
"integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==",
"requires": {
"buffer": "^5.6.0"
}
},
"mongodb": {
"version": "4.16.0",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.16.0.tgz",
"integrity": "sha512-0EB113Fsucaq1wsY0dOhi1fmZOwFtLOtteQkiqOXGklvWMnSH3g2QS53f0KTP+/6qOkuoXE2JksubSZNmxeI+g==",
"requires": {
"@aws-sdk/credential-providers": "^3.186.0",
"bson": "^4.7.2",
"mongodb-connection-string-url": "^2.5.4",
"saslprep": "^1.0.3",
"socks": "^2.7.1"
}
}
}
}
The text was updated successfully, but these errors were encountered: