# Old CesiumJS codes no longer work with the new version 1.103

**URL:** <https://community.cesium.com/t/old-cesiumjs-codes-no-longer-work-with-the-new-version-1-103/23218>\
**Category:** CesiumJS\
**Created:** [April 3, 2023, 2:49pm UTC](https://community.cesium.com/t/old-cesiumjs-codes-no-longer-work-with-the-new-version-1-103/23218 "2023-04-03T14:49:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [April 4, 2023, 5:35pm UTC](https://community.cesium.com/t/old-cesiumjs-codes-no-longer-work-with-the-new-version-1-103/23218/8 "2023-04-04T17:35:12Z")

</div>

The critical part appears to be

> TypeError: tileset\_zoneB.readyPromise.then(…).otherwise is not a function

This corresponds to the instructions that are given [in the linked thread](https://community.cesium.com/t/cesiumjs-is-switching-from-when-js-to-native-promises-which-will-be-a-breaking-change-in-1-92/17213), which says

> In promise chains which originate from the Cesium API, switch to using the Promise API
> 
> - `otherwise` changes to `catch`
> - `always` changes to `finally`

As a first, quick shot, you could look at your source code and search for the function `otherwise`, and change this to `catch`.

(Maybe that’s not the _only_ difference, but it should bring you one step closer towards a state that works with the latest version)

---

_[View the full topic](https://community.cesium.com/t/old-cesiumjs-codes-no-longer-work-with-the-new-version-1-103/23218)._
