diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..4e96ae0 Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json index 5f2498d..ad34278 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,7 @@ "Namecheap", "Nuxt", "spacegrotesk", - "Tailwindcss" + "Tailwindcss", + "vuex" ] } diff --git a/content/blogs/6. how-to-fix-vuex-type-issue.md b/content/blogs/6. how-to-fix-vuex-type-issue.md new file mode 100644 index 0000000..2ed4bb7 --- /dev/null +++ b/content/blogs/6. how-to-fix-vuex-type-issue.md @@ -0,0 +1,29 @@ +--- +title: How to fix vuex type issue +date: 9th June 2024 +description: In recent vue project we see that vuex type not working properly. We will fix that type issue and make vuex type workable +image: /blogs-img/blog6.png +alt: How to fix vuex type issue +ogImage: /blogs-img/blog6.jpg +tags: ['vue',"vuex"] +published: true +--- + +### Introduction + +In recent version of our vue project, when we try to add vuex we see type error and vuex type not found. We can easily fix that issue. + +### How to fix that issue + +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"; +} + +``` +3. That's it. Your are ok to go. \ No newline at end of file diff --git a/public/.DS_Store b/public/.DS_Store new file mode 100644 index 0000000..ba628c1 Binary files /dev/null and b/public/.DS_Store differ diff --git a/public/blogs-img/blog6.png b/public/blogs-img/blog6.png new file mode 100644 index 0000000..4439a0c Binary files /dev/null and b/public/blogs-img/blog6.png differ