Update to Nuxt 3.14 and Replace npm with pnpm (#72)
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
committed by
GitHub
parent
32e4f6fe44
commit
9db5ae8103
@@ -17,7 +17,6 @@ Nuxt.js is a popular open-source framework for building Vue.js applications. Wit
|
||||
|
||||
The first step is to install the necessary dependencies for Nuxt Content v2. To do this, run the following command:
|
||||
|
||||
|
||||
```js
|
||||
npm install @nuxt/content@next
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Vue.js is a popular JavaScript framework for building web applicati
|
||||
image: /blogs-img/blog5.jpg
|
||||
alt: Some Awesome Libraries For Vue3
|
||||
ogImage: /blogs-img/blog5.jpg
|
||||
tags: ['vue',"javascript"]
|
||||
tags: ['vue', 'javascript']
|
||||
published: true
|
||||
---
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: In recent vue project we see that vuex type not working properly. W
|
||||
image: /blogs-img/blog6.jpg
|
||||
alt: How to fix vuex type issue
|
||||
ogImage: /blogs-img/blog6.jpg
|
||||
tags: ['vue',"vuex"]
|
||||
tags: ['vue', 'vuex']
|
||||
published: true
|
||||
---
|
||||
|
||||
@@ -17,13 +17,14 @@ In recent version of our vue project, when we try to add vuex we see type error
|
||||
|
||||
1. Create a `vuex.d.ts` file inside of your route project.
|
||||
2. Pase this code in that file
|
||||
```ts
|
||||
declare module "vuex" {
|
||||
export * from "vuex/types/index.d.ts";
|
||||
export * from "vuex/types/helpers.d.ts";
|
||||
export * from "vuex/types/logger.d.ts";
|
||||
export * from "vuex/types/vue.d.ts";
|
||||
}
|
||||
|
||||
```ts
|
||||
declare module 'vuex' {
|
||||
export * from 'vuex/types/index.d.ts'
|
||||
export * from 'vuex/types/helpers.d.ts'
|
||||
export * from 'vuex/types/logger.d.ts'
|
||||
export * from 'vuex/types/vue.d.ts'
|
||||
}
|
||||
```
|
||||
3. That's it. Your are ok to go.
|
||||
|
||||
3. That's it. Your are ok to go.
|
||||
|
||||
Reference in New Issue
Block a user