Pinia installation instructions while Vue 3.2.0 is in beta
See original GitHub issueStarting 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/*
andvue
versions in your package.json file to3.2.0-0
:
This should install the latest beta versions of Vue.- "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",
- 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:
- Created 2 years ago
- Reactions:5
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
)Yes, it’s the same as described above, you need Vue 3.2.0