ionic framework =>react base project

Viewed 730

I am facing this issue in ionic 5 react base project when run in mobile

cmd=>npx cap add android

[error] The web directory (G:\ashwini\ionicprojects\reactproj\src) must contain a "index.html". It will be the entry point for the web portion of the Capacitor app.

1 Answers

Try this:

$ ionic build

And after:

$ npx cap add android

Related