Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify "missing web assets directory" error message #3131

Merged
merged 4 commits into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cli/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export async function checkWebDir(config: Config): Promise<string | null> {
}
if (!await existsAsync(config.app.webDirAbs)) {
return `Capacitor could not find the web assets directory "${config.app.webDirAbs}".
Please create it, and make sure it has an index.html file. You can change
the path of this directory in capacitor.config.json.
More info: https://capacitor.ionicframework.com/docs/basics/configuring-your-app`;
Please create it and make sure it has an index.html file. You can change
the path of this directory in capacitor.config.json (webDir option).
You may need to compile the web assets for your app (typically 'npm run build').
More info: https://capacitor.ionicframework.com/docs/basics/building-your-app`;
}

if (!await existsAsync(join(config.app.webDirAbs, 'index.html'))) {
Expand Down