I had a similar problem. In my case the problem was that the storage.d.ts and index.d.ts inside node_modules/storage/dist had a different version than it was supposed to have.Also I had grade 4 and it was asking for 4.1 or something like that. (It’s been awhile)
I found out by running
ionic cordova build android --prod --verbose --stacktrace --l
Don’t think the --l is necessary but I frankly don’t remember.