Hi I am using mongodb and next js and I followed the documentation but after setting up the system as per docs I am getting below errors while executing.
[next-auth][error][adapter_error_getUserByAccount] https://next-auth.js.org/errors#adapter_error_getuserbyaccount Cannot read properties of undefined (reading 'db') { message: "Cannot read properties of undefined (reading 'db')", stack: "TypeError: Cannot read properties of undefined (reading 'db')n" + ' at file:///C:/Users/admin/Desktop/ecommerce/adminRe/admin-app/node_modules/@auth/mongodb-adapter/index.js:123:36', name: 'TypeError' }
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR] https://next-auth.js.org/errors#oauth_callback_handler_error Cannot read properties of undefined (reading 'db') TypeError: Cannot read properties of undefined (reading 'db') at file:///C:/Users/admin/Desktop/ecommerce/adminRe/admin-app/node_modules/@auth/mongodb-adapter/index.js:123:36 { name: 'GetUserByAccountError', code: undefined }
I converted ts file to .js file and I need to setup this project and i am just exploring it please help me out as I am new here