Skip to content

Commit b0bfa61

Browse files
committed
fix(module): use ctx.tryUse()
1 parent 4d224f0 commit b0bfa61

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

module.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports.defineNuxtConfig = (config = {}) => {
2828
const { nuxtCtx } = await import('@nuxt/kit')
2929

3030
// Allow using kit composables in all modules
31-
if (nuxtCtx.use()) {
31+
if (nuxtCtx.tryUse()) {
3232
nuxtCtx.unset()
3333
}
3434
nuxtCtx.set(nuxt)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@nuxt/schema": "^3.0.0-rc.6",
3838
"@nuxt/ui-templates": "^0.3.0",
3939
"@vitejs/plugin-legacy": "^1.8.2",
40+
"@vitejs/plugin-vue2": "^1.1.2",
4041
"acorn": "^8.8.0",
4142
"cookie-es": "^0.5.0",
4243
"defu": "^6.0.0",
@@ -68,11 +69,11 @@
6869
"semver": "^7.3.7",
6970
"std-env": "^3.1.1",
7071
"ufo": "^0.8.5",
72+
"unctx": "^2.0.1",
7173
"unimport": "^0.6.4",
7274
"unplugin": "^0.8.1",
7375
"untyped": "^0.4.4",
7476
"vite": "^2.9.14",
75-
"@vitejs/plugin-vue2": "^1.1.2",
7677
"vue-bundle-renderer": "^0.3.9"
7778
},
7879
"devDependencies": {

0 commit comments

Comments
 (0)