Cannot use Capacitor Storage with Ionic React

I am using Ionic, React, and Capacitor v3.

I am trying to use the Storage plugin from Capacitor. However, getting this message in the file “StoragePlugin.swift”; “Value of optional type ‘String?’ must be unwrapped to a value of type ‘String’”.

I have just upgraded from Capacitor v2 and I have no idea about v3. Any help is appreciated. Thank you.

Did you update all Capacitor packages to v3? @capacitor/ios, @capacitor/core @capacitor/cli

I only updated @capacitor/core. Thank you! Updating those 3 made it work!