question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot resolve module when running Flow on Windows

See original GitHub issue

Environment

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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
zenzcommented, Oct 22, 2018

No other one using flow under windows or don’t have any problem on this?

0reactions
gengjiawencommented, Feb 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found