I tried copying all the contents of the dist/ folder in the current public_node folder.
Now I'm getting this as error in error.log file
/usr/home/shivamdhaka1200/domains/backend-chess.shivamdhaka1200.serv00.net/public_nodejs/node_modules/mongodb/lib/admin.js:62
session: options?.session,
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module.compile (internal/modules/cjs/loader.js:963:27)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module.load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at Module.require (/usr/local/lib/ruby/gems/3.2/gems/passenger-6.0.17/src/helper-scripts/node-loader.js:98:25)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/home/shivamdhaka1200/domains/backend-chess.shivamdhaka1200.serv00.net/public_nodejs/node_modules/mongodb/lib/index.js:6:17)
at Module.compile (internal/modules/cjs/loader.js:999:30)
/usr/home/shivamdhaka1200/domains/backend-chess.shivamdhaka1200.serv00.net/public_nodejs/node_modules/mongodb/lib/admin.js:62
I downgraded the mongdb to 3.6.0 but still it is the same.
Can you please help me out.