chenglou / chenglou/react-motion

Flow error: Default import from `react`

Open
#500 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi, I just updated my Flow, but after update, it gives me this error from react-motion:

```bash
Error: node_modules/react-motion/lib/Types.js.flow:7
7: import type React from 'react';
^^^^^ Default import from `react`. The default export is a value, but not a type. `import type` only works on type exports like type aliases, interfaces, and classes. If you intended to import the type *of* a value, please use `import typeof` instead.
```

Using flow@0.57.3 and react-motion@0.4.7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.