Content-Length: 284992 | pFad | http://github.com/nativescript-vue/nativescript-vue/issues/1085

22 Pinia TS error · Issue #1085 · nativescript-vue/nativescript-vue · GitHub
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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/nativescript-vue/nativescript-vue/issues/1085

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy