facebook / facebook/relay

[relay 13] environment.executeSubscription is not a function

Open
#3,757 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

After upgrading to Relay 13 I'm getting the following runtime error:
environment.executeSubscription is not a function

I've seen that executeSubscription has been added with this PR, so I don't really understand why it can't find the function:
https://github.com/facebook/relay/commit/e11a33476b0958a858191769c39acc254e9e0ac3

I'm using TypeScript as output language and the "babel-plugin-relay": "^13.0.1" but this shouldn't have any impact on this runtime error, should it?

Contributor guide

Open the contributing guide

Research direction

Start at the runtime entry point named in the error, environment.executeSubscription, and compare the Relay 13 change linked in commit e11a33476b0958a858191769c39acc254e9e0ac3 with the TypeScript output and babel-plugin-relay version. Done means the Relay 13 runtime exposes executeSubscription and the reported error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.