Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What version of Vue am I running in Nuxt 2.14.0?

I'm trying to identify if my Nuxt app (2.14.0) is using Vue 2 or Vue 3, and I cannot tell. I have dived through node_modules and looked at my lock file but can't say for certain. I think it's using only Vue 2 -- specifically vue "^2.6.12 -- based on what I can tell in the lock file.

Does anyone know which version of Vue that Nuxt is using in version 2.14.0 ? I tried reading through this issue to better understand when / if Vue 3 has been introduced and release publicly in Nuxt.js but it sounds like Vue 3 is not incorporated inside any release of Nuxt.js.

like image 411
robskrob Avatar asked Sep 29 '20 16:09

robskrob


1 Answers

The current versions of nuxt.js are still using vue 2.6.x, and to make it work with vue 3 main feature (composition api), you should use the module called composition-api.nuxtjs, as you can see in the introduction they say:

@nuxtjs/composition-api provides a way to use the Vue 3 Composition API in with Nuxt-specific features.

like image 193
Boussadjra Brahim Avatar answered Oct 09 '22 03:10

Boussadjra Brahim