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

Hass.io 0.96.3 : Cannot read property 'some' of undefined #174

Open
3 tasks done
Sjeff opened this issue Jul 23, 2019 · 14 comments
Open
3 tasks done

Hass.io 0.96.3 : Cannot read property 'some' of undefined #174

Sjeff opened this issue Jul 23, 2019 · 14 comments

Comments

@Sjeff
Copy link

Sjeff commented Jul 23, 2019

Checklist

  • I'm running the latest version of CustomUI (Update guide) or using a specific release that is not marked as "Broken".
  • I tried to force-refresh (Ctrl+Shift+R / Ctrl+F5) the browser
  • (Optional, but recommended) I'm using Chrome or tried to reproduce the feature on Chrome.

Browser + Version:
Chrome 75.0.3770.142

CustomUI version:
20190518
Home Assistant release (hass --version):
0.96.3
Problem-relevant configuration.yaml entries:

Problem-relevant Home Assistant log entries:
Error shows when navigating to the Configuration tab.
image

ERROR (MainThread) [frontend.js.latest.201907210] https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html:27:8858 Uncaught TypeError: Cannot read property 'some' of undefined
ERROR (MainThread) [frontend.js.latest.201907210] https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html:27:8858 Uncaught TypeError: Cannot read property 'some' of undefined

Any errors from browser Javascript console:
image

@stepanov1975
Copy link

Same problem
custom_ui/state-card-custom-ui.html:27:8858 Uncaught TypeError: Cannot read property 'some' of undefined

arch | x86_64
-- | --
dev | false
docker | false
hassio | false
os_name | Linux
python_version | 3.6.8
timezone | Asia/Jerusalem
version | 0.96.4
virtualenv | true

@badnimits
Copy link

Same

@zaneclaes
Copy link

+1

1 similar comment
@codylv7
Copy link

codylv7 commented Aug 10, 2019

+1

@RezzZ
Copy link

RezzZ commented Aug 13, 2019

same error with 'normal' HA 0.97.2 running in docker on a raspberry pi 3B+

@startrk1995
Copy link

startrk1995 commented Aug 16, 2019

Same. Looks like it is this block.

if (!haConfigNavigation.pages.some(conf => conf === 'customui' || conf.domain === 'customui')) { haConfigNavigation.push('pages', haConfigNavigation.localize ? 'customui' : { domain: 'customui', caption: 'Custom UI', description: 'Set UI tweaks.', loaded: true, }); }

!haConfigNavigation.pages.some seems to be the issue.

@skynet01
Copy link

skynet01 commented Aug 30, 2019

Same for me on Ha 0.98.1. Wonder if it's effecting anything else. Any idea how to patch it manually until fix comes out?

@ctrl50
Copy link

ctrl50 commented Sep 23, 2019

need a fix for this..

@tibzz42
Copy link

tibzz42 commented Sep 28, 2019

Same here :(

@mfabiani53
Copy link

What happens if i delete the state-card-custom-ui.html from the custom_ui folder?

@RezzZ
Copy link

RezzZ commented Nov 7, 2019

depends if you mention it in your configuration.yaml @mfabiani53 . If you want to stop using customui you need to remove those lines in the configuration.yaml as well.

@skynet01
Copy link

skynet01 commented Nov 7, 2019

I think he still wants to use Customui, we just want the error "Cannot read property 'some' of undefined" to go away. I am only using it for custom icons color

@ThePirat91
Copy link

ThePirat91 commented Nov 21, 2019

+1 here.
I'm on HA v0.101.3 (hassio) and latest version of custom ui (20190518)

Please fix it, thanks

@Spirituss
Copy link

Have the same issue, please, fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests