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

TypeError: undefined is not an object (evaluating 't.locale') #86

Closed
2 tasks done
ItsEcholot opened this issue Aug 3, 2022 · 9 comments · Fixed by #87 or #88
Closed
2 tasks done

TypeError: undefined is not an object (evaluating 't.locale') #86

ItsEcholot opened this issue Aug 3, 2022 · 9 comments · Fixed by #87 or #88
Labels
bug Something isn't working

Comments

@ItsEcholot
Copy link

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
v4.2.1
Last working release (if known):

Browser and Operating System:
Safari 15.5, MacOS 12.4

Description of problem:
Card doesn't show up, the following error is thrown in the console.

Javascript errors shown in the web inspector (if applicable):

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 't.locale')
	performUpdate (hourly-weather.js:11:4941)
	(anonymous function) (hourly-weather.js:11:4454)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 't.locale')
	(anonymous function) (hourly-weather.js:11:4394)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
@ItsEcholot ItsEcholot added the bug Something isn't working label Aug 3, 2022
@databoy2k
Copy link

I can't tell if this is related or the same or just similar. I've got the same issue of the card not showing up. Console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'locale')
    at co.shouldUpdate (hourly-weather.js?hacstag=499270202421:259:2419)
    at co.performUpdate (hourly-weather.js?hacstag=499270202421:11:4637)
    at co.scheduleUpdate (hourly-weather.js?hacstag=499270202421:11:4445)
    at co._$Ej (hourly-weather.js?hacstag=499270202421:11:4353)

@Fox350
Copy link

Fox350 commented Aug 3, 2022

I do have the card programmed and it was working before 4.2.1. Now, I see it in the editor but it do not show up anymore. Strangely, when I change something in the HA frontend editor the card appear. But not when normal browsing

@decompil3d
Copy link
Owner

Thank you for the report. I think it's a timing bug. I have a fix in #87 that I'll get merged and released shortly.

@decompil3d
Copy link
Owner

Fixed in 4.2.2. Thanks again for reporting the issue!

@decompil3d
Copy link
Owner

Actually, found one more error case. Fix incoming.

@Fox350
Copy link

Fox350 commented Aug 3, 2022 via email

@decompil3d
Copy link
Owner

Ok, confirmed that 4.2.3 does indeed fix the issue. Thanks again folks!

@Fox350
Copy link

Fox350 commented Aug 3, 2022

Yep 4.2.2 did not for me but 4.2.3 did the job. I use French in HA. Thanks again

@ItsEcholot
Copy link
Author

Thanks for the quick fix, works as expected now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants