Nuxt.js: Nuxt.js Page Unresponsive

Created on 2 Jul 2019  ·  5Comments  ·  Source: nuxt/nuxt.js

Version

v2.8.1

Reproduction link

https://jsfiddle.net/2pbthd1v/

Steps to reproduce

I don't know what exactly cause this bug, so I don't know how to reproduce or debug it. But looks like it's a known Vue problem – https://github.com/vuejs/vue/issues/6558.

What is expected ?

-

What is actually happening?

Browser just freezes after click at any link
ncty5.png

Additional comments?

I got this bug for the first time after update to Nuxt v2.8.1. Then I started another project and got this bug again. It happens sometimes in different browsers. Sometimes only language-specific versions of the website are affected (probably i18n module cause this bug, but I'm not sure).

Some of my deps:
"@nuxtjs/auth": "^4.7.0",
"@nuxtjs/axios": "^5.5.4",
"@nuxtjs/google-analytics": "^2.0.2",
"@nuxtjs/toast": "^3.2.1",
"nuxt-i18n": "^5.12.7"

Probably something else cause this problem. Looking for any tips. Thanks.

This bug report is available on Nuxt community (#c9447)
bug-report pending-repro

Most helpful comment

Thanks God for Chrome step-by-step debug. nuxt-community/nuxt-i18n causes this problem if you use detectBrowserLanguage option. I will copy issue to their repo. Nuxt rocks 💪

All 5 comments

Please, create a nuxt repro where this could be seen. Otherwise its impossible to tell what wrong and where..

Thanks God for Chrome step-by-step debug. nuxt-community/nuxt-i18n causes this problem if you use detectBrowserLanguage option. I will copy issue to their repo. Nuxt rocks 💪

Closing here then ☺️

@nxmad, do you have a link to the issue? I have the same problem.

@nxmad, do you have a link to the issue? I have the same problem.

in my case, in middleware:
route.name === 'login' - freeze page
change to
route.path.indexOf('/login') === 0 - fixes infinite redirect (the problem was in my code)

package.json
"nuxt-i18n": "^6.15.4",

its working because nuxt-i18n change route name to login___en

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lazycrazy picture lazycrazy  ·  3Comments

shyamchandranmec picture shyamchandranmec  ·  3Comments

nassimbenkirane picture nassimbenkirane  ·  3Comments

danieloprado picture danieloprado  ·  3Comments

jaredreich picture jaredreich  ·  3Comments