镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Provide suggestions for common cannot-find-name errors - #27034

Merged
Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:cannot-find-common-names
Sep 11, 2018
Merged

Wesley Wigham (weswigham) merged 1 commit into
microsoft:masterfrom
weswigham:cannot-find-common-names

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #25309

@weswigham Wesley Wigham (weswigham) changed the title Provide suggestions for common can-not-find-name errors Provide suggestions for common cannot-find-name errors Sep 11, 2018
@weswigham

Copy link
Copy Markdown
Member Author

tests/cases/compiler/didYouMeanSuggestionErrors.ts(18,23): error TS2583: Cannot find name 'WeakMap'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
tests/cases/compiler/didYouMeanSuggestionErrors.ts(19,23): error TS2583: Cannot find name 'WeakSet'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
tests/cases/compiler/didYouMeanSuggestionErrors.ts(20,19): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
tests/cases/compiler/didYouMeanSuggestionErrors.ts(21,19): error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@DanielRosenwasser

Copy link
Copy Markdown
Member

Can't wait for the quick fixes on this.

Comment thread src/compiler/checker.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants