I got error when mongodb work with bcdice
So i create a simple nodejs project, just install mongodb an bcdice,
If remove all bcdice code, mongodb is work fine…
I got error when mongodb work with bcdice
So i create a simple nodejs project, just install mongodb an bcdice,
If remove all bcdice code, mongodb is work fine…
Hi @QQ_Zeix,
Can you share the error message you are encountering?
It would also be useful to know your versions of Node.js, Mongoose, and MongoDB Node.js driver.
Thanks,
Stennie
node_modules\mongodb\lib\core\topologies\replset_state.js:456
var normalizedHosts = ismaster.hosts.map(function(x) {
^
TypeError: ismaster.hosts.map is not a function
at ReplSetState.update (g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\topologies\replset_state.js:456:42)
at Server.<anonymous> (g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\topologies\replset.js:756:43)
at Object.onceWrapper (events.js:422:26)
at Server.emit (events.js:315:20)
at Pool.<anonymous> (g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\topologies\server.js:384:12)
at Pool.emit (events.js:315:20)
at g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\connection\pool.js:581:12
at g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\connection\pool.js:1036:7
at callback (g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\connection\connect.js:75:5)
at g:\GitHub\helloworld\test-bcdice-with-mongoose\node_modules\mongodb\lib\core\connection\connect.js:148:11
“bcdice”: “^1.6.0”,
"mongodb": "^3.6.2"
NODEJS V12