auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

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

Open Tlaloc-Es opened this issue 3 years ago • 1 comments

Version

module: 5.0.0-1648802546.c9880dc nuxt: 2.14.5

Nuxt configuration

mode:

  • [X ] universal

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.

Tlaloc-Es avatar Sep 15 '22 14:09 Tlaloc-Es

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,
        }
      }
    },

rikusen0335 avatar Jan 06 '23 01:01 rikusen0335