Cannot resolve module when running Flow on Windows
See original GitHub issueEnvironment
Run react-native info
in your terminal and paste its contents here.
react-native info
React Native Environment Info: System: OS: Windows 10 CPU: x64 Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 2.09 GB / 7.91 GB Binaries: Yarn: 1.9.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD
Description
using flow not working and got error with “Cannot resolve module XXXXXX”. but same action under macOS works well.
Reproducible Demo
react-native init testapp cd testapp yarn add flow-bin@0.78.0 --dev yarn flow
under windows will get errors.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:19 (11 by maintainers)
Top Results From Across the Web
Flow: Throws error Cannot resolve module "react-redux" even ...
How to fix it. You have two options: stub the dependency by hand; bring in flow-typed to find the dependency type file/stub it...
Read more >How to solve the required module not found error in flow.js
Fix the ESLint problem Simply disable ESLint check for the folder via creating a . eslintignore file in the root of that project...
Read more >Flow module resolution (Cannot resolve module) : WEB-40527
Although modules' paths are correct and are accepted by webpack with flow, intellij complains about them. See attached screenshot. No errors!
Read more >Flow erroring "cant resolve module" when importing node ...
Run yarn global add flow-typed to install flow-typed globally. · Go to project folder: flow-typed install · Close your terminal and try to...
Read more >flow cannot resolve module relative path
Same situation here, while using react-native 0.57.0, run flow will get cannot resolve module 'react-native', while updating to 0.57.1, tons of 'cannot ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No other one using flow under windows or don’t have any problem on this?
Glad it works. But still need to do work on this repo since there is another issue on windows. I will close this issue for now.