We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
react
1 parent fdf9d5c commit 3398969Copy full SHA for 3398969
helpers/validateNextUsage.js
@@ -31,7 +31,7 @@ const MIN_EXPERIMENTAL_VERSION = '10.0.0'
31
32
const hasPackage = function (packageName) {
33
try {
34
- require(packageName)
+ require(`${packageName}/package.json`)
35
return true
36
} catch (error) {
37
return false
0 commit comments