You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existence of the web asset directory should only be checked when running copy/sync, not during add or other commands.
The current behavior can lead to this error:
❯ npx cap add
[error] Could not find the web assets directory: /Users/dan/git/capacitor-testapp/build.
Please create it and make sure it has an index.html file. You can change the path of this directory in
capacitor.config.ts (webDir option). You may need to compile the web assets for your app (typically npm run
build).
More info: https://capacitorjs.com/docs/v3/basics/workflow#sync-your-project
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
The existence of the web asset directory should only be checked when running
copy
/sync
, not duringadd
or other commands.The current behavior can lead to this error:
Also see ionic-team/ionic-cli#4510
The text was updated successfully, but these errors were encountered: