How to Check Vue.js Project Version With Code

Updated 2 weeks ago admin Javascript / Vue.js

In today's lesson, we are going to solve the problem of getting the current version of a Vue.js project without using npm.

Check the current Vue.js application version

You can easily check the version of your current Vue.js project with code like this:

import { version } from 'vue';
    
if (version.split('.')[0] === '3') {
    console.log('you have the latest version!');
}else{
    console.log('Upgrade to Vue 3!');
}