Unable to resolve module `..\\__generated__\\...` in React Native on Windows with artifactDirectory
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Reproduction repository using the SWAPI server from here https://github.com/graphql/swapi-graphql.
https://github.com/benmurden/react-native-relay-windows-repro
It seems this issue is related to Windows directory traversal, because things seem to compile fine when generated artifacts are next to files where the query is used. I.e. when `artifactDirectory` is used to collect all relay artifacts, and components are located in another folder up the tree, Babel or Metro seem unable to correctly resolve the artifact file.
### Environment
```
OS: Windows 10
Node: v12.18.3
react: 16.13.1
react-native: 0.63.3
react-relay: 10.0.1
```

Notice that the output suggests that too many upward directory traversals (`..\\..\\..\\`) are being prepended to the artifact directory.
Contributor guide
Assessment
This issue has not been assessed yet.