-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak #1039
Comments
Ok, so it turns out that vuetify only speeds up the process significantly. I re-did the process w/o vuetify and added another page after project creation, then I just put |
Same here |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello, Can't reproduce, also it's 404:
Thanks! |
Update: It seems to happen in combination with vue-i18n in dev-mode. In prod-mode I can't reproduce it either. Still investigating, will report if I can reproduce again. |
I need to retract my reproduction-post (deleted). It was only reproducible in dev-mode and not in prod-mode. |
Yeah, I knew it only happened in dev mode |
This comment has been minimized.
This comment has been minimized.
Heya! I'm experiencing a similar issue, where my memory usage spikes when I have My config: i18n: {
locales: [
{ code: 'en', file: 'en.json' },
{ code: 'cs', file: 'cs.json' },
{ code: 'fr', file: 'fr.json' }
],
defaultLocale: 'en',
lazy: true,
strategy: 'no_prefix',
langDir: '~/translations/',
vueI18n: '~/plugins/i18n.ts'
}, When I remove // Edit: |
Can't do anything without a repo that reproduces. There are too many variables that are in play here (other packages, contents of the localizations, contents of your pages/components, project setup). Also you haven't specified whether the leak is during development only or also in production. |
I understand... It happens on development and on production as well, altho I see there is a new major version 7.31, i thought that it's only for nuxt 3, so I'm going to try and upgrade and see if that fixes anything :). Thanks! // Edit: |
Unfortunately, the issue persists in 7.3.1 @nuxtjs/i18n, I don't understand why, it only happens if |
i've the same issue |
@alyeldegwy what modules / plugins are you using outside of nuxt i18n? Maybe if we find a match we can discover what causes the memory leak, I couldn't reproduce it in a new repo for now |
I figured it out in my case. When I used In the configuration, it required a So if you install i18n: {
locales: [
{ code: 'en', file: 'en.json' },
{ code: 'cs', file: 'cs.json' },
{ code: 'fr', file: 'fr.json' }
],
lazy: true,
defaultLocale: 'en',
strategy: 'no_prefix',
langDir: '~/translations/',
vueI18n: '~/plugins/i18n.ts'
},
import { I18nOptions } from 'vue-i18n';
export default (): I18nOptions => ({
fallbackLocale: 'en',
pluralizationRules: {
cs(choice: number) {
if (choice === 0) {
return 0;
}
if (choice === 1) {
return 1;
}
if (choice > 1 && choice < 5) {
return 2;
}
return 3;
}
}
}); and set VueToastification as such in nuxt config: import { POSITION } from 'vue-toastification';
...
toast: {
position: POSITION.TOP_RIGHT,
toastClassName: 'example-app-toast',
timeout: 5000,
maxToasts: 8,
closeButton: false,
newestOnTop: true
}, You successfully replicate a memory leak. // Edit |
Same issue #2612 |
¡¡VERSION 8.0.1 works fine!! |
Closing due to inactivity (and lack of up to date reproduction), if you're still experiencing this issue please open a new issue with a (minimal) reproduction. |
Version
nuxt-i18n: 6.18.0
nuxt: 2.14.12
Nuxt configuration
mode:
Nuxt-i18n configuration
no configuration (aka whatever the defaults are)
Steps to reproduce
yarn create nuxt-app <name>
(settings used)

Added
nuxt-i18n
tobuildModules
innuxt.config.js
yarn dev
Open whatever resource manager (task manager, system monitor, etc) and find the right node task
navigate to localhost:3000 and refresh a bunch and watch the memory go up.
Note: I tried it w/o vuetify and it doesn't happen, and it doesn't happen with just vuetify, only when both are present.
EDIT: Use this repo to reproduce it.
What is Expected?
node shouldn't run out of memory.
What is actually happening?
NodeJS crash
The text was updated successfully, but these errors were encountered: