Skip to content

Pinia TS error #1085

Open
Open
@PixsaOJ

Description

@PixsaOJ

app.use(pinia) gives me Typescript error.

Code example:

import { createApp, registerElement } from 'nativescript-vue'
import { createPinia } from 'pinia'

const app = createApp(App)
const pinia = createPinia()
app.use(pinia)

Error:

     ├╴  Argument of type 'Pinia' is not assignable to parameter of type 'Plugin<[]>'.
     │      Type 'Pinia' is not assignable to type 'FunctionPlugin<[]>'.
     │        Type 'Pinia' is not assignable to type '(app: App<any>) => any'.
     │          Type 'Pinia' provides no match for the signature '(app: App<any>): any'. typescript (2345) [142, 9]

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy