require.resolve('@types/node')
fails when peerDep is missing
#1419
Milestone
require.resolve('@types/node')
fails when peerDep is missing
#1419
We tweak TS's resolver behavior to automatically resolve to @types/node when it is not installed locally. This is useful for running lone shell scripts without any project boilerplate.
However, it looks like we're throwing an error when we attempt to resolve @types/node and it doesn't exist.
Is this a bug that @types/node is missing? Or is it a bug that we're not gracefully catching the error?
ts-node/src/resolver-functions.ts
Line 140 in e8a4d76
The text was updated successfully, but these errors were encountered: