Better hints for 'cannot find name' errors #25309
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Fixed
A PR has been merged for this issue
Milestone
Discussed at #25306
We found that for "Cannot find name" errors, certain identifiers were fairly frequent:
We're thinking that we can elaborate beyond the usual error message.
$
=> Suggest jQuerydescribe
=> Did you mean to have types for mocha, jest, etc.?process
,require
,module
=> Suggest including Node typesSymbol
,Promise
,Map
,Set
,WeakMap
,WeakSet
,Iterator
,AsyncIterator
=> User needs to set a differentlib
ortarget
.The text was updated successfully, but these errors were encountered: