Appflow build fails due to plugin version

I am having an issue creating a build on 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;
"

I’ve had this issue before building locally, I have to set the ionic
storage plugin to version 2.2.0. How would I go about setting the version of this plugin
for the appflow environment?