nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #1782

Open Tlaloc-Es opened 2 years ago

Tlaloc-Es commented 2 years ago

Version

module: 5.0.0-1648802546.c9880dc nuxt: 2.14.5

Nuxt configuration

mode:

Nuxt configuration

I had the following configuration: endpoints: { login: { url: '/login', method: 'post' }, logout: { url: '/logout', method: 'post' }, user: { url: '/user', method: 'get' }, },

but when I change to the current configuration that you can see above, I start to get slow app, I keep the tree endpoints I got the following error after a time:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I didn't if I comment user endpoint, but anyway nuxt become too slow to work.

I like it if auth is making a lot of requests, but in the server, I don't have any requests logged.

rikusen0335 commented 1 year ago

Seems same to my problem even error is not, but give it a try though I'm not sure if it works:

    strategies: {
      local: {
        endpoints: {
          login: { url: '/login', method: 'post' },
          logout: { url: '/logout', method: 'post' },
          user: false,
        },
        user: {
          autoFetch: false,
        }
      }
    },