If you know how to fix the issue, make a pull request instead.
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {ThemeProvider} from "styled-components";
import App from './App';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<ThemeProvider theme={{}}>
<App />
</ThemeProvider>,
document.getElementById('root') as HTMLElement
);
registerServiceWorker();
If you know how to fix the issue, make a pull request instead.
I tried using the
@types/styled-componentspackage and had problems because since of v.4.1.9 another conflicted dependency was added (@types/react-native) and conflicts with @types/node . See commitI tried using the latest stable version(3.3.3333) of tsc. https://www.npmjs.com/package/typescript
I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
Mention the authors (see
Definitions by:inindex.d.ts) so they can respond.how to reproduce:
yarn create react-app my-app-ts --scripts-version=react-scripts-tsyarn add styled-componentsyarn add -D @types/styled-componentsyarn startSee the react app
There is a lot of fails according to many definitions conflicts with lib.dom
