How to Check Vue js Project Version with Code?
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 Vue js current 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!');
}