mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(kit): remove invalid portion of version from semver (#1555)
This commit is contained in:
parent
59de0f9218
commit
84e299f280
@ -356,7 +356,8 @@ export function checkNuxtCompatibilityIssues (constraints: NuxtCompatibilityCons
|
||||
const issues: NuxtCompatibilityIssues = []
|
||||
if (constraints.nuxt) {
|
||||
const nuxtVersion = getNuxtVersion(nuxt)
|
||||
if (!semver.satisfies(nuxtVersion, constraints.nuxt)) {
|
||||
const nuxtSemanticVersion = nuxtVersion.split('-').shift()
|
||||
if (!semver.satisfies(nuxtSemanticVersion, constraints.nuxt)) {
|
||||
issues.push({
|
||||
name: 'nuxt',
|
||||
message: `Nuxt version \`${constraints.nuxt}\` is required but currently using \`${nuxtVersion}\``
|
||||
|
Loading…
Reference in New Issue
Block a user