-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Remove reference not found errors from jsx: preserve
#60687
Conversation
tests/baselines/reference/jsxFragmentFactoryReference(jsx=react-jsx).errors.txt
Outdated
Show resolved
Hide resolved
I found that a lot of the errors generated in the original PR seem to be incorrect as well. The most recent change removes those, and adds some more tests to show the behavior with the rest of the |
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.
You could do // @noTypesAndSymbols: true
and maybe even // @noEmit: true
since we really only care about errors for these tests
@typescript-bot cherry-pick this to release-5.7 |
…e-5.7 (#60721) Co-authored-by: Isabel Duan <isabelduan@microsoft.com>
Fixes #60603
Cleans up a lot of errors that shouldn't have been included with #59933. From discussion with @andrewbranch:
preserve
shouldn't perform the checkreact
should check forReact
in scope, andjsx/jsxFrag
pragmas should check if entity name is in scopereact-jsx
,react-jsx-dev
, settings andjsxImportSource
pragma should check that the corresponding module can be imported