You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOAD_AS_DIRECTORY(X)
1. If X/package.json is a file,
a. Parse X/package.json, and look for "main" field.
b. If "main" is a falsy value, GOTO 2.
c. let M = X + (json main field)
d. LOAD_AS_FILE(M)
e. LOAD_INDEX(M)
f. LOAD_INDEX(X) DEPRECATED
g. THROW "not found"
2. LOAD_INDEX(X)
Step 1.b. indicates we should ignore a "falsy" value for "main", and we should probably do the same for "types", however in both cases we only check for undefined and allow "".
TypeScript Version: 3.2.0-dev.20181101
Code
(This is just
typesVersions.justIndex.ts
plus"types": "",
)Expected behavior:
No error.
Actual behavior:
Module resolution fails. The trace indicates that it is now looking for a file named
"*.d.ts"
instead of parsing the pattern correctly.The text was updated successfully, but these errors were encountered: