Closed NLStom closed 2 years ago
@NLStom I believe that this issue is similar to https://github.com/ghoshnirmalya/nextjs-strapi-boilerplate/issues/4. Please let me know if the discussion in that issue helps you. I'll keep this open for the time being.
Thank you for pointing me to the right direction.
[next-auth][error][adapter_connection_error] https://next-auth.js.org/er... error: role "strapi" does not exist
I got an error to sign in with Try signing with a different account.
[next-auth][error][oauth_callback_handler_error] https://next-auth.js.org/errors#oauth_callback_handler_error TypeError: Cannot destructure property (/Users/cli/Documents/react/shop-flish-frontend/node_modules/next-auth/dist/adapters/typeorm/index.js:111:11)
at Generator.next ()
at asyncGeneratorStep (/Users/cli/Documents/react/shop-flish-frontend/node_modules/next-auth/dist/adapters/typeorm/index.js:26:103)
at _next (/Users/cli/Documents/react/shop-flish-frontend/node_modules/next-auth/dist/adapters/typeorm/index.js:28:194)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
manager
of 'undefined' or 'null'. at Object.[next-auth][error][adapter_connection_error] https://next-auth.js.org/errors#adapter_connection_error error: role "strapi" does not exist at Parser.parseErrorMessage (/Users/cli/Documents/react/shop-flish-frontend/node_modules/pg-protocol/dist/parser.js:278:15) at Parser.handlePacket (/Users/cli/Documents/react/shop-flish-frontend/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/Users/cli/Documents/react/shop-flish-frontend/node_modules/pg-protocol/dist/parser.js:39:38) at Socket. (/Users/cli/Documents/react/shop-flish-frontend/node_modules/pg-protocol/dist/index.js:10:42)