cutting-room-floor / tilestream

A high-performance map tile server powered by MBTiles files
BSD 3-Clause "New" or "Revised" License
745 stars 106 forks source link

Object 0 has no method 'toLowerCase' #119

Closed stevage closed 10 years ago

stevage commented 10 years ago

I get this when running ./index.js:

TypeError: Object 0 has no method 'toLowerCase'
    at Object.parse [as shorthandParser] (/mnt/new/tilestream/node_modules/bones/node_modules/jquery/node_modules/jsdom/node_modules/cssstyle/lib/parsers.js:349:11)
    at CSSStyleDeclaration.exports.shorthandSetter [as border] (/mnt/new/tilestream/node_modules/bones/node_modules/jquery/node_modules/jsdom/node_modules/cssstyle/lib/parsers.js:373:27)
    at /mnt/new/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:1331:26
    at /mnt/new/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:1423:3
    at create (/mnt/new/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:9059:3)
    at /mnt/new/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:9065:18
    at Object.<anonymous> (/mnt/new/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:9067:2)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)

I'm on Ubuntu Quantal, and have tried both the Ubuntu installation methods (ie, including the one with nodeenv), plus deleting node_modules, and reinstalling. All give this result.

minusplusminus commented 10 years ago

bump

springmeyer commented 10 years ago

this was also reported at https://github.com/mapbox/tilemill/issues/2172. I think the cssstyle depedency was temporarily broken. Can you try again now (after clearing out your node_modules) and running npm cache clean?

stevage commented 10 years ago

Yup, fixed now, thanks.

springmeyer commented 10 years ago

https://github.com/mapbox/tilemill/issues/2172#issuecomment-29712622