# Ionic Storage version needs to be downgraded \[Build Error\]

**URL:** <https://forum.ionicframework.com/t/ionic-storage-version-needs-to-be-downgraded-build-error/201795>\
**Category:** Appflow\
**Created:** [December 24, 2020, 2:51pm UTC](https://forum.ionicframework.com/t/ionic-storage-version-needs-to-be-downgraded-build-error/201795 "2020-12-24T14:51:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y4UBradyG](https://avatars.discourse-cdn.com/v4/letter/y/0ea827/32.png) [@Y4UBradyG](https://forum.ionicframework.com/u/Y4UBradyG)\
**Post date:** [December 24, 2020, 2:51pm UTC](https://forum.ionicframework.com/t/ionic-storage-version-needs-to-be-downgraded-build-error/201795/1 "2020-12-24T14:51:43Z")

</div>

I am able to build my app on my computer but I run into errors when building via appflow.

"ERROR in node\_modules/@ionic/storage/storage.d.ts:113:9 - error TS1086: An accessor cannot be declared in an ambient context.

113 get driver(): string | null;"

Now I got this exact issue on my computer. All I had to do was downgrade ionic storage to 2.2.0 and its fine. The problem is I am not sure how to downgrade it via appflow’s environment, if that is even possible.

---

<div class="post-metadata">

**Author:** ![Likhith\_Aalla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/likhith_aalla/32/137762_2.png) [@Likhith\_Aalla](https://forum.ionicframework.com/u/Likhith_Aalla)\
**Post date:** [December 28, 2020, 1:22pm UTC](https://forum.ionicframework.com/t/ionic-storage-version-needs-to-be-downgraded-build-error/201795/2 "2020-12-28T13:22:30Z")

</div>

Hi [Y4UBradyG](https://forum.ionicframework.com/u/Y4UBradyG),

You are right. You can mitigate this by downgrading the ionic/storage to 2.2.0. The same issue can be seen here: [https://github.com/ionic-team/ionic-storage/issues/192](https://github.com/ionic-team/ionic-storage/issues/192)

Once you made the necessary changes in your local system, make sure you commit the changes and try a new build in appflow.

If you are facing any further issues, I would encourage you to contact the [Appflow support](https://ionic.zendesk.com/hc/en-us/requests/new) for further assistance.

Thanks,
