ofekashery / vertical-stack-in-card

📐 Home Assistant Card: Group multiple cards into a single sleek card.
MIT License
897 stars 79 forks source link

Uncaught SyntaxError: Unexpected token '<' #69

Closed m90att closed 5 years ago

m90att commented 5 years ago

I followed the instructions to install and got this error, any ideas what the cause is please?

Fri Nov 08 2019 15:34:20 GMT+0000 (Greenwich Mean Time) https://www.myurl.com/local/vertical-stack-in-card.js?v=0.1.3:7:1 Uncaught SyntaxError: Unexpected token '<'

ofekashery commented 5 years ago

This is most likely because you downloaded the html instead of the raw. That is not valid javascript. Always make sure you download using raw button. After downloading the file again with the 'raw' button, remember to bump the version number for the custom component speficied in the 'resources' of your lovelace-ui.yaml file.

m90att commented 5 years ago

Thanks for this. I saved the raw format, uploaded it to HA, changed the version to 0.1.4, restarted but I'm getting the same error. I tried changing the version back but same error. I'm feeling a bit silly for not knowing but when you are not familiar with something it's difficult to know what to do. I've followed the instructions and it's not working.

m90att commented 5 years ago

I've sorted it. it was the '-' and indentation in your example. I removed the '-' and moved everything left 2 spaces and it's working.