Upgrade From Capacitor V2 to V3

-- First Check the current version

npx cap doctor

-- Then install the new version of capacitor

npm install @capacitor/cli@next @capacitor/core@next    

-- and install the new version of capacitor/android

npm install @capacitor/android@next

-- check again

npx cap doctor  

--every this is ok? Then install pluggins you want

 npm install @capacitor/keyboard

npm install @capacitor/haptics 

npm install @capacitor/app

npm install @capacitor/storage

 

-- after all updates done , Sync the project

npx cap sync

-- if you want to check for the latest updates,run 

npx npm-check-updates -u 

-- then  npm install

npm install

-- of any problems occure due to update  of typescript , youcan downgrade type script like this

//downgrade typescript version
npm install typescript@">=4.0.0 <4.2.0"

-- replace " with ' in linux

 

// removing plugin
1- remove it from package.json
2- npm uninstall <<plugin name ecample action-sheet>>
3- npx cap sync 


 




Comments

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Working With File Throgh WebUtill