Skip to content
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

t or Split is undefined 8.17.4 but nothing when rollback #868

Closed
GoatFreezy opened this issue May 7, 2020 · 4 comments · Fixed by #869
Closed

t or Split is undefined 8.17.4 but nothing when rollback #868

GoatFreezy opened this issue May 7, 2020 · 4 comments · Fixed by #869
Labels
Status: Need More Info Lacks enough info to make progress Type: Bug Bug or Bug fixes

Comments

@GoatFreezy
Copy link

Hello,
We have our CI which updated vuei18n to the lastest version (8.17.4) at our last deployement.
unfortunatly this cause our whole website to crash with 2 different errors :
"t is undefined"
"TypeError: Cannot read property 'split' of undefined"

We stuggled on detecting it because with the browser cache the website was correctly loading, so all developpers didnt had the error.

I was able to make our website functionnal after rolling back to the version we used to have : 8.12.4.

Our major probleme is that with the browser cache in local we dont have any error, it only happends on servers.

@pegiadise
Copy link

Same thing here. It happens when vue-i18n is set to a locale that is not listed in browser locales. Reverting to v8.16.0 which was the last one working for me.

@kazupon kazupon added the Status: Need More Info Lacks enough info to make progress label May 8, 2020
@pegiadise
Copy link

Happens here and fails with TypeError: Cannot read property 'split' of undefined. Sentry shows that the error is thrown on render. I attach the respective (unfortunately minified) error snippet below.

{snip} U.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var a=r.join("-");i=this._appendItemToChain(t,a,n),r.splice(-1,1)}w {snip}

Hope it helps a bit.

@kazupon
Copy link
Owner

kazupon commented May 10, 2020

Fixed.
I've just released v8.17.5
please check it!
https://github.com/kazupon/vue-i18n/releases/tag/v8.17.5

@pegiadise
Copy link

v8.17.5 resolved the issue indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need More Info Lacks enough info to make progress Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants