jquery-backstretch / jquery-backstretch

Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
http://www.jquery-backstretch.com
MIT License
3.91k stars 912 forks source link

Bower broken? #466

Open niftylettuce opened 7 years ago

niftylettuce commented 7 years ago

You need to use [] array instead of {} for the ignore array in bower.json.

niftylettuce commented 7 years ago
screen shot 2017-03-08 at 3 12 14 am
niftylettuce commented 7 years ago

The error is Unexpected token , in JSON at position 596

philkrie commented 7 years ago

Seeing the same issue

gaspardip commented 7 years ago

Also, shouldn't the repository url be https://github.com/jquery-backstretch/jquery-backstretch.git now? instead of the old fork url... ?

Feels like the whole bower.json needs to be updated.

srobbin commented 7 years ago

Looks like the ignore object/array issue was fixed back in October. The most recent version contains both these corrections.

Are you seeing this error when trying to do a bower update? If so, maybe Backstretch needs to be removed entirely, and then re-added. Maybe the JSON is unforgivingly fatal to that process.

jdobbin-hsahealthplan commented 7 years ago

The issue with the unexpected token in JSON is due to the encoding on the file which appears to be Western European. Changing this to unicode UTF-7 (Code Page 65000) fixed the issue for me. I'm sure ANSI would fix the issue as well.

JoshDobbin commented 7 years ago

PR #468 addresses the bower.json issue with "Unexpected token"