We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting this TypeScript error when I delete React import statement.
/Users/nikita/Projects.localized/react-17-test/src/App.tsx TypeScript error in /Users/nikita/Projects.localized/react-17-test/src/App.tsx(2,11): 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. TS2686 1 | const App = () => { > 2 | return <div>Test</div>; | ^ 3 | }; 4 | 5 | export default App;
Just generated project with yarn create react-app react-17-test --template typescript.
yarn create react-app react-17-test --template typescript
The text was updated successfully, but these errors were encountered:
Okay, nevermind, it will work normally with TypeScript 4.1 – https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#jsx-factories
Sorry, something went wrong.
import React from 'react';
So we don't get that JSX Transform?
No branches or pull requests
Getting this TypeScript error when I delete React import statement.
Just generated project with
yarn create react-app react-17-test --template typescript
.The text was updated successfully, but these errors were encountered: