Skip to content

Conversation

@zhangciwu
Copy link

@zhangciwu zhangciwu commented Apr 29, 2019

This is not recommended for ts:
import React from 'react';
(This syntax need very specific tsconfig, which my project and many others would not meet, and cause Error: ERROR in node_modules/rmc-date-picker/lib/DatePicker.d.ts(1,8): TS1192: Module '"node_modules/@types/react/index"' has no default export. )

So I changed them into
import * as React from 'react';

@zhangciwu
Copy link
Author

Related:
microsoft/TypeScript-React-Starter#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant