node modules resolver should return a fallback path for package not located by require.resolve
#919
Closed
1 of 5 tasks
Labels
Milestone
Type of Change
Summary
As part of #917 , noticed that inadvertently when puppeteer was added to
dependencies
, all of a sudden certain packages would fail thegetNodeModulesLocationForPackage
utility function look up, and error out in the terminal.What's interesting is that there is no change in dependecies before / after moving puppeteer into
dependencies
?Details
Not sure why locations is null, but I suppose there's no reason we couldn't at least try and do something, like fallback to
process.cwd()
I supposeMaybe this issue is relevant? - ajv-validator/ajv#1381
The text was updated successfully, but these errors were encountered: