Skip to content

No such module 'Capacitor' #109

Closed as not planned
Closed as not planned
@jafaircl

Description

@jafaircl

I'm following the docs here for creating a plugin:

https://capacitorjs.com/docs/plugins/creating-plugins

When I run npm init @capacitor/plugin@latest, everything seems to be created fine. But, when I open the package in Xcode, I get an error No such module 'Capacitor' when I open the plugin .swift file. The package fails to build. I don't make any changes before attempting to build the plugin.

I'm on Xcode version 15.4 and node 20.13.1

(There is also an issue building the web version but that is because of type errors in the dependencies. Setting "skipLibCheck": true and "types": [] in the compiler options in tsconfig.json fixes that issue)

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