My app doesnt connect to mongodb
Budget: $10 – $30 USD
Im developing an app using meanjs framework. This framework is old and deprecated so a few days ago it brocke because i was not able to connect to mongodb so I updated my mongoose library but it throw me an error:
C:\Users\eder0\OneDrive\Documentos\mathsimulation\node_modules\mongoose\lib\index.js:349
conn.openUri(uri, { ...options, _fireAndForget: true });
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\eder0\OneDrive\Documentos\mathsimulation\node_modules\mongoose\index.js:8:18)
at Module._compile (module.js:570:32)
[nodemon] app crashed - waiting for file changes before starting...
The job is to help me to correct that error and to run my app again
C:\Users\eder0\OneDrive\Documentos\mathsimulation\node_modules\mongoose\lib\index.js:349
conn.openUri(uri, { ...options, _fireAndForget: true });
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\eder0\OneDrive\Documentos\mathsimulation\node_modules\mongoose\index.js:8:18)
at Module._compile (module.js:570:32)
[nodemon] app crashed - waiting for file changes before starting...
The job is to help me to correct that error and to run my app again