-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor module resolution logic to have configurable goal extensions #9430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ed46d89
5a3c695
5e40c8e
7894136
fa9bfc8
6a257a4
ef102da
903ad65
b1b31d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ======== Resolving module 'm1' from 'realisticNpmTypes/index.ts'. ======== | ||
| Explicitly specified module resolution kind: 'NodeJs'. | ||
| Loading module 'm1' from 'node_modules' folder. | ||
| File 'realisticNpmTypes/node_modules/m1.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/package.json' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/package.json' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.d.ts' exist - use it as a name resolution result. | ||
| ======== Module name 'm1' was successfully resolved to 'realisticNpmTypes/node_modules/@types/m1/index.d.ts'. ======== |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ======== Resolving module 'm1' from 'realisticNpmTypes/index.ts'. ======== | ||
| Explicitly specified module resolution kind: 'NodeJs'. | ||
| Loading module 'm1' from 'node_modules' folder. | ||
| File 'realisticNpmTypes/node_modules/m1.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/package.json' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/m1/index.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1.d.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/package.json' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes/node_modules/@types/m1/index.d.ts' exist - use it as a name resolution result. | ||
| ======== Module name 'm1' was successfully resolved to 'realisticNpmTypes/node_modules/@types/m1/index.d.ts'. ======== |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ======== Resolving module 'm1' from 'realisticNpmTypes2/index.ts'. ======== | ||
| Explicitly specified module resolution kind: 'NodeJs'. | ||
| Loading module 'm1' from 'node_modules' folder. | ||
| File 'realisticNpmTypes2/node_modules/m1.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1.d.ts' does not exist. | ||
| Found 'package.json' at 'realisticNpmTypes2/node_modules/m1/package.json'. | ||
| Expected type of 'typings' field in 'package.json' to be 'string', got 'undefined'. | ||
| Expected type of 'types' field in 'package.json' to be 'string', got 'undefined'. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.d.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.d.ts' does not exist. | ||
| Found 'package.json' at 'realisticNpmTypes2/node_modules/@types/m1/package.json'. | ||
| Expected type of 'typings' field in 'package.json' to be 'string', got 'undefined'. | ||
| 'package.json' has 'types' field 'm1.d.ts' that references 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts'. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts' exist - use it as a name resolution result. | ||
| ======== Module name 'm1' was successfully resolved to 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts'. ======== |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ======== Resolving module 'm1' from 'realisticNpmTypes2/index.ts'. ======== | ||
| Explicitly specified module resolution kind: 'NodeJs'. | ||
| Loading module 'm1' from 'node_modules' folder. | ||
| File 'realisticNpmTypes2/node_modules/m1.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1.d.ts' does not exist. | ||
| Found 'package.json' at 'realisticNpmTypes2/node_modules/m1/package.json'. | ||
| Expected type of 'typings' field in 'package.json' to be 'string', got 'undefined'. | ||
| Expected type of 'types' field in 'package.json' to be 'string', got 'undefined'. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/m1/index.d.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.ts' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.tsx' does not exist. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1.d.ts' does not exist. | ||
| Found 'package.json' at 'realisticNpmTypes2/node_modules/@types/m1/package.json'. | ||
| Expected type of 'typings' field in 'package.json' to be 'string', got 'undefined'. | ||
| 'package.json' has 'types' field 'm1.d.ts' that references 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts'. | ||
| File 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts' exist - use it as a name resolution result. | ||
| ======== Module name 'm1' was successfully resolved to 'realisticNpmTypes2/node_modules/@types/m1/m1.d.ts'. ======== |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,5 +6,6 @@ | |
| ], | ||
| "baselineCheck": true, | ||
| "moduleResolution": "node", | ||
| "allowJs": true | ||
| "allowJs": true, | ||
| "traceResolution": true | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are not specifying
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'doh. It's just added by default in so many places that I thought this may be one of them. Added and fixed. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,5 +6,6 @@ | |
| ], | ||
| "baselineCheck": true, | ||
| "moduleResolution": "node", | ||
| "allowJs": true | ||
| "allowJs": true, | ||
| "traceResolution": true | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this file doesn't exist, but it's referenced?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah. It didn't get committed because it's in a node_modules folder. That's funny. And annoying. Let me fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, see the last line I added to the gitignore file on my prior merge to master. That nearly got me too.