Vue3 how to fix error when running "vue add apollo"? - vue.js

I created an app with Vue 3.
I ran vue add apollo and run into an error.
how do I fix this

Related

Does Nuxt Bridge migration upgrade to Vue 3 as well?

I recently updated our app to use Nuxt Bridge following this guide:
https://v3.nuxtjs.org/bridge/overview
We were previously on Vue 2.7.10 but now when I check my vue version using npm view vue version I get 3.2.39.
But If I go into node_modules/vue/package.json I see this:
"name": "vue",
"version": "2.7.10",
I tried deleting node_modules, yarn.lock, .nuxt and explicitly added "vue":"3.2.39" to package.json then redid yarn install. After that I got an error about nuxt Cannot find module 'nuxt'.
So I guess my questions are: How can I tell which version of Vue I'm actually using in this project?
My goal is to upgrade to Vue 3, is there an issue with Nuxt Bridge and Vue 3?

How can i solve Nuxt.js cannot find module '#vue/composition-api' error?

When developing Nuxt.js
cannot find module '# vue / composition-api
I get an error. Why does this error occur?
Stop the project and
# if you use yarn
$ yarn add #vue/composition-api
# if you use npm
$ npm install #vue/composition-api --save
download composition-api in your project.
And start again.
I've found out this error is being caused by Vuter extension. This extension is requiring composition API which is available on Vue 3.x Disabling it fixes the problem but again you need Vuter yikes!
Vue composition API is a latest feature presented onwards in Vuejs 3.0. Please make sure your base dependency is set to correct vuejs version in package.json file.
P.S I am not sure of Nuxt compatibility.

vue dev tools not working with vue-cli project

I've installed new vue-cli project and when launched locally and opened on localhost:8080 by running
npm run serve
Vue dev tools stayed inactive. I've read that one needs to initialize Vue instance, in order for it to work, but with vue-cli, app is initialized with createApp, but not with Vue instance.
I recently had this problem using vue cli 4.5.3. After an upgrade to 4.5.4 using vue upgrade the devtools fired up.
It was my bad. I've accidentally used vue v3 instead of v2. After switching back to 2 version, works fine.

Error of spawn vue-cli-service ENOENT after updating vue cli?

My vue project started throwing errors last night. At first I thought it was some sort of node issue because my project wasn't fully loading, which wasn't an issue before and I kept getting an audit issue about my cli plugin. I update node to the latest version and it uploaded fully once, then later it stopped loading and showing anything on the screen. This morning, I tried loading it through the vue cli instead of the terminal and noticed they had updated the vue cli plugin. I updated my vue cli plugin and tried to build my project but now I'm getting this error
"spawn vue-cli-service ENOENT"
can anyone help me with this error and what to do to get my vue project back up and running? Everything was up and running fine before this. Not really sure what is going on. I also have the following plugins running on my project, not sure if that may be impacting anything: vuetify, axios, vuex, vue router, and I have firebase and firestore, as well.
Thanks in advance for your help!
Please use the following link. It worked for me right away.
https://programmerah.com/solution-of-serve-with-message-spawn-vue-cli-service-enoent-395/
I ran all this in Windows shell
in CMD into the project directory (this is very important!!)
execute NPM install
re-import in the visualization panel. (I just ran "vue ui")
Prior to doing this I had installed node using windows installer and then the following from the powershell
npm update -g #vue/cli
npm install -g #vue/cli-service-global
restart if you need to, go to the project directory in powershell and "vue ui" without quotes and it worked after that. I was able to compile and run the project without any issues. Once the task is built, you may open a new tab and goto localhost:8080
best of luck! (it was a witch-hunt for me)

I've Electron Project and I'd like to use vueJS into it

I've Electron Project, but I can't use vuejs inside it...so how to use vuejs inside it? or I should install vue cli and install electron?
The easiest way that I have seen currently is to create your Vue site first, with vue-cli 3, and then a vue-cli-plugin- but not electron-vue, which is stale. Use vue-cli-plugin-electron-builder. Starting with this, you can then add all the Vue you want.