Skip to content

Commit

Permalink
[core] Coerce semver to allow prereleases of React (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Aug 13, 2019
1 parent ecada11 commit 5222546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/core/src/util/checkReactCompatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = workDir => {
)} `
)
}
if (!semver.satisfies(installed, supported[pkg])) {
if (!semver.satisfies(semver.coerce(installed), supported[pkg])) {
throw new Error(
`Sanity currently only supports ${pkg}@${supported[pkg]}. Installed version: ${installed}.`
)
Expand Down

0 comments on commit 5222546

Please sign in to comment.