Relay Resolver has module resolution problem in TypeScript
Open
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Same issue as https://github.com/facebook/relay/issues/3989, but it was not completely fixed.
The dynamic imports in the AST omit extensions, however the type imports still have the extensions.
It appears that
https://github.com/facebook/relay/blob/639abe1b23ed2187500514c331bed3aebede2f02/compiler/crates/relay-typegen/src/typescript.rs#L97
and
https://github.com/facebook/relay/blob/639abe1b23ed2187500514c331bed3aebede2f02/compiler/crates/relay-typegen/src/typescript.rs#L101
Both also need to strip extensions, as typescript requires that extensions not be provided.
Contributor guide
Assessment
This issue has not been assessed yet.