I have an Angualr project with Ionic framework, I need to use Semvar to compare the local version with the API version to force users to update
after installing semver
npm install semver
I want to import it in the project and the require function is not compatible with angular
const semver = require('semver') ===> error