Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69adc7d

Browse files
authoredNov 19, 2020
Merge pull request #60 from netlify/bug/fix-react
Fix `react` peer dependency
2 parents fdf9d5c + 3398969 commit 69adc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎helpers/validateNextUsage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const MIN_EXPERIMENTAL_VERSION = '10.0.0'
3131

3232
const hasPackage = function (packageName) {
3333
try {
34-
require(packageName)
34+
require(`${packageName}/package.json`)
3535
return true
3636
} catch (error) {
3737
return false

0 commit comments

Comments
 (0)
Please sign in to comment.