question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pinia installation instructions while Vue 3.2.0 is in beta

See original GitHub issue

Starting from v2.0.0-rc.0, pinia requires at least Vue 3.2.0, which is currently in beta.

If you came across an error like

export 'effectScope' (imported as 'effectScope') was not found in 'vue'

You are still on Vue 3.1.x. Read the instructions below to upgrade.

  • If you are starting a new project, it is safe to use the beta of Vue until a stable version is released (one or two weeks from now). Change any @vue/* and vue versions in your package.json file to 3.2.0-0:
    -    "vue": "^3.2.0-beta.7",
    +    "vue": "^3.2.0-0",
    -    "@vue/compiler-sfc": "^3.2.0-beta.7",
    -    "@vue/server-renderer": "^3.2.0-beta.7",
    +    "@vue/compiler-sfc": "^3.2.0-0",
    +    "@vue/server-renderer": "^3.2.0-0",
    
    This should install the latest beta versions of Vue.
  • If you are upgrading an existing project
    • If you want to upgrade pinia, upgrade Vue first using the instructions above and then, upgrade pinia
    • If you don’t need to or can’t upgrade Vue yet, stay on pinia@2.0.0-beta.5 until Vue 3.2.0 is released as stable

To use pinia@2.0.0-rc.0, use the beta dist tag:

yarn add pinia@beta
# or
npm i pinia@beta

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
posvacommented, Aug 16, 2021

Vue 3.2.0 is published 🎉

For those using Vue 2, make sure you have at least @vue/composition-api 1.1.0 (which is currently installed with npm install @vue/composition-api@next).

2reactions
posvacommented, Jul 30, 2021

Yes, it’s the same as described above, you need Vue 3.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pinia installation instructions while Vue 3.2.0 is in beta #592
Starting from v2.0.0-rc.0, pinia requires at least Vue 3.2.0, which is currently in beta. ... You are still on Vue 3.1.x. Read the...
Read more >
Installation - Pinia
If your app is using Vue <2.7, you also need to install the composition api: @vue/composition-api . If you are using Nuxt, you...
Read more >
Pinia lost reactivity when using it in library mode
i'm currently trying to create a library out of an existing project, that should export a component with a "flow" inside it (eg....
Read more >
Cryptic error with Pinia (Vue 3 + TypeScript) : r/vuejs - Reddit
I'm using Jest to do the unit tests. [ ]: getActivePinia was called with no active Pinia. Did you forget to install...
Read more >
vuex | Yarn - Package Manager
The official state management library for Vue has changed to Pinia. Pinia has almost the exact same or enhanced API as Vuex 5,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found