facebook / facebook/flow

"Required module not found" for subdirectories of node modules.

Open
#4,133 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Discovered this problem while importing `@kadira/storybook`, which made me think it might have been something to do with the `@` symbol at the start of the module name, but I have since replicated it with other requires. Basically when including a module from `node_modules`, you are unable to require anything from a subdirectory of that module:

```js
const submodule = require('my-module/submodule');
^^^^^^^^^^^^^^^^^^^ my-module/submodule. Required module not found
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.