skip to Main Content

Amazon web services – ( session: options?.session, ^ SyntaxError: Unexpected token '.')mongoose give a error deploying in instance ubuntu aws

I have this error while using mongoose: /var/www/node-api/node_modules/mongoose/node_modules/mongodb/lib/admin.js:62 session: options?.session, ^ SyntaxError: Unexpected token '.' I reinstalled node_modules but I always get the same problem. For mongoose and my connection in my device it worked correctly.

VIEW QUESTION

'ERR_MODULE_NOT_FOUND' getting error while connecting to mongoDB

I am new to JavaScript and currently learning mongoDB with node and mongoose. when I try to connect with db, i got this error: Did you mean to import ../config/dbConfig.js? at finalizeResolution (node:internal/modules/esm/resolve:255:11) at moduleResolve (node:internal/modules/esm/resolve:908:10) at defaultResolve (node:internal/modules/esm/resolve:1121:11) at…

VIEW QUESTION
Back To Top
Search