@capacitor/storage - npx cap sync fails

I an trying to follow the capacitor docs (link Capacitor - build cross platform apps with the web).

But I am even failing to install. What I have done is:

  • ionic start storageApp blank --type=angular --capacitor
  • cd storageApp
  • npm install @capacitor/storage
  • npx cap sync

And I got the error: " Could not find the web assets directory: ./www ."

Any ideas what I am doing wrong?

Thank you for help. Best wishes from Germany.

Try to build app first.

ionic build

It works, thank you!