All of the sudden, this morning i started getting the following error when calling VectorTileLayer.loadStyle() in the Javascript API (Version 4.5).
Uncaught TypeError: Cannot read property 'path' of null
at r (VectorTileLayer.js:7)
at q (VectorTileLayer.js:6)
at Object.f.loadMetadata (VectorTileLayer.js:10)
at Object.g._getSourceAndStyle (VectorTileLayer.js:52)
at Object.g.loadStyle (VectorTileLayer.js:50)
at initVectorTyleStyles (COS_MapControl.html:1043)
at openLargeMap (COS_MapControl.html:874)
at <anonymous>:1:1
The code worked 30 minutes ago, and then suddenly stopped working. I'm pretty sure it's the same code and i don't think anything else has changed. The root.json file that i'm passing it is unchanged. I'm still looking into this, but i'm wondering if something perhaps broke with ESRI's updates last night? I'm hitting against Version 4.5 though, so in theory nothing should have changed there.
Javascript API Version 4.5. Happens also on 4.6. Windows 10, both Chrome & Firefox. The offending root.json file is attached.
Thank you,
Emory H