Skip to content

Commit

Permalink
fix(nuxt): nuxt v3 compatibility (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 16, 2022
1 parent 7315293 commit aa12958
Show file tree
Hide file tree
Showing 4 changed files with 783 additions and 561 deletions.
10 changes: 5 additions & 5 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia/nuxt -r 1"
},
"dependencies": {
"@nuxt/kit": "^3.0.0-rc.13",
"@nuxt/kit": "^3.0.0",
"pinia": ">=2.0.23"
},
"devDependencies": {
"@nuxt/module-builder": "latest",
"@nuxt/schema": "^3.0.0-rc.13",
"@nuxt/test-utils": "^3.0.0-rc.13",
"nuxt": "^3.0.0-rc.13",
"@nuxt/module-builder": "^0.2.1",
"@nuxt/schema": "^3.0.0",
"@nuxt/test-utils": "^3.0.0",
"nuxt": "^3.0.0",
"typescript": "^4.8.4",
"vue-tsc": "^1.0.9"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from 'node:url'
import { defineNuxtConfig } from 'nuxt'
import { defineNuxtConfig } from 'nuxt/config'
import piniaModule from '../src/module'

export default defineNuxtConfig({
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/runtime/plugin.vue2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default (context: any, inject: any) => {
setActivePinia(pinia)

// add access to `$nuxt`
// @ts-expect-error: _p is internal
pinia._p.push(({ store }) => {
// make it non enumerable so it avoids any serialization and devtools
Object.defineProperty(store, '$nuxt', { value: context })
Expand Down

0 comments on commit aa12958

Please sign in to comment.