Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Object(...) is not a function at createPinia #1147

Closed
leopons opened this issue Mar 13, 2022 · 0 comments
Closed

TypeError: Object(...) is not a function at createPinia #1147

leopons opened this issue Mar 13, 2022 · 0 comments

Comments

@leopons
Copy link

leopons commented Mar 13, 2022

Hi! I can't seem to run Pinia at all with Vue3, I get a browser console error at createPinia.

Uncaught TypeError: Object(...) is not a function
    at createPinia (pinia.mjs?be92:907:1)

Here's my app.js

import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";

createApp(App).use(createPinia()).mount("#app");

(actually this is not my real app.js but I removed everything else to keep it as simple as possible here)

And my dependencies:

    "core-js": "^3.6.5",
    "pinia": "^2.0.11",
    "vue": "^3.0.0",
    "vue-router": "^4.0.0-0",
    "vue-select": "^4.0.0-beta.3",
    "vue-svg-inline-plugin": "^2.2.0"

I am using Vue CLI, and I also tried with the unofficial plugin as described in the docs but without success (do I have to do something more than just yarn add it ?)

Also might be worth mentioning I had this problem and fixed it as described here, even though I have to say I may not grasp completely what's happening here.

I have to say I found nothing about this and don't know where to search anymore. Maybe I'm not seeing something obvious, but I'll really appreciate some help

@vuejs vuejs locked and limited conversation to collaborators Mar 13, 2022
@posva posva converted this issue into discussion #1148 Mar 13, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant