Skip to content

Capacitor could not find the web assets directory #6

@JAspeling

Description

@JAspeling

I'm trying to add capacitor to my web app - but when running npx cap add android I get the following error:

Capacitor could not find the web assets directory "C:\Source\Upwork\snabvendor\snabvendor\www".
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://capacitorjs.com/docs/basics/building-your-app

I have built my app, but with Angular it's output is the /dist/<project-name> folder. Should the "webDir" in the capacitor.config.json point to this folder instead of www?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions