Skip to content

Due to TS v4, having a capacitor plugin in a monorepo with a SvelteKit project kills page data types #136

@jacob-8

Description

@jacob-8

Update this line: https://github.com/ionic-team/create-capacitor-plugin/blob/97504d75c68a589b31cf375d9b68271907a4beea/assets/plugin-template/package.json.mustache#L64C5-L64C27

I highly recommend updating the plugin's Typescript package to version 5, otherwise SvelteKit users will randomly find themselves with issues whereby their page data types no longer work. The Svelte and TS LSPs see Typescript 4 in the node modules and this break the types that rely on Typescript 5. It doesn't matter if you even use the plugin in your SvelteKit app, just having Typescript 4 in your node_modules is enough to break things.

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