skip to Main Content

Mongodb – connect mongoose in nextjs middleware

I'm trying to connect next.js app to mongodb via mongoose in _middeware file(./pages/_middleware.ts ) But I get this error on incoming requests: error - (middleware)node_modulesmongoosedistbrowser.umd.js (1242:0) @ ReferenceError: regeneratorRuntime is not defined How can I fix it?

VIEW QUESTION

undefined local variable or method `flash' for #<Devise::OmniauthCallbacksController:0x007fb5d1741e48> – Facebook api

I am building a Rails-API using Omniauth-facebook and Devise-token-auth with Angular and ng-token-auth for the frontend. However when logging in with facebook I am presented with the error: undefined local variable or method `flash' for #<Devise::OmniauthCallbacksController:0x007fd027a51e10> It seems omniauth automatically…

VIEW QUESTION
Back To Top
Search