Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.Β #60588

Copy link
Copy link
@imranbarbhuiya

Description

@imranbarbhuiya
Issue body actions

πŸ”Ž Search Terms

Hi, from ts 5.7, I'm getting the same error as reported in #60132 but for jsx: react-native. Wheneven I use <></>, I get the above error

πŸ•— Version & Regression Information

  • This changed between versions 5.6 and 5.7

⏯ Playground Link

https://www.typescriptlang.org/play/?jsx=3&ts=5.7.2#code/JYWwDg9gTgLgBAbzgNWAUwO5wL5wGZQQhwDkUaAhgMYwC0AdhTMAG5okDcAUF2gB6RY+AK70awCPTgBhIpHpp6MABQBKBD3IxhUKQB4AfFzhw9qTAb0B6cxiMmz6O9dv3TVo9iA

πŸ’» Code

import { View } from 'react-native';

export function Component(){

return <>
  <View></View>
  <View></View>
  </>
}

πŸ™ Actual behavior

The fragment shows an error

πŸ™‚ Expected behavior

This should work like ts 5.6 and shouldn't error

Additional information about the issue

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.