mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

TypeError: Cannot set property 'xml' of undefined #1319

Open willwhite opened 9 years ago

willwhite commented 9 years ago

Rapidly loading the new project page, such as http://localhost:3000/new/style?id=tmpstyle:///Users/willwhite/mapbox-studio/node_modules/mapbox-studio-default-style can trigger the following crash:

/Users/willwhite/mapbox-studio/lib/style.js:115
        cache[id].xml = xml;
                      ^
TypeError: Cannot set property 'xml' of undefined
    at done (/Users/willwhite/mapbox-studio/lib/style.js:115:23)
    at /Users/willwhite/mapbox-studio/node_modules/tilelive-vector/index.js:112:20

crash

springmeyer commented 9 years ago

I'm not sure if this hits the same codepath (or even invokes sources) but if it does https://github.com/mapbox/mapbox-studio/issues/1284 might be related.