chenglou / chenglou/react-motion
I got "react-motion. Required module not found" error in flow even after running `flow-typed`
- Dominant language
- JavaScript
- Stars
- 21.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I got my flowconfig like this:
```
[ignore]
.*node_modules.*
[include]
[libs]
./flow-typed
./flow/declarations
```
But I got this error in flow:
```
xxx.js:7
7: import {StaggeredMotion, spring} from 'react-motion';
^^^^^^^^^^^^^^ react-motion. Required module not found
```
I've noticed that you already have the types in `.flow` files but doesn't work. Maybe because is ignoring the node_modules. But again, all the other +100 modules I'm using works just fine with flow, is just this one that is breaking flow. :/
By the way, the app works when is built.
thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the repository's flowconfig, especially the [libs] entries for flow-typed and flow/declarations, and inspect the existing react-motion declarations mentioned in the issue. Reproduce the Flow error on the import in xxx.js and determine why this module is not resolved. Done means Flow accepts the react-motion import while the existing module checks continue to pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100