Skip to content
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

Module react has no default export #13

Closed
garycourt opened this issue May 10, 2018 · 0 comments · Fixed by #14
Closed

Module react has no default export #13

garycourt opened this issue May 10, 2018 · 0 comments · Fixed by #14

Comments

@garycourt
Copy link

This line is throwing the Typescript error:

Module '"node_modules/@types/react/index"' has no default export.

import React from 'react';

It should be written as:

import * as React from 'react';

voxtex added a commit to voxtex/react-error-boundary that referenced this issue May 13, 2018
bvaughn added a commit that referenced this issue May 13, 2018
fix issue #13, correctly import react in type defintion
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 a pull request may close this issue.

1 participant