facebook / facebook/relay

`react-relay` uses undeclared dependency `scheduler`

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

Description

`yarn berry` complains about `react-relay` requiring an undeclared dependency `scheduler`:

```
./.yarn/$$virtual/react-relay-virtual-8db22a2c03/0/cache/react-relay-npm-0.0.0-experimental-895a6fe0-3b3bf7f4a4-3.zip/node_modules/react-relay/lib/relay-experimental/useBlockingPaginationFragment.js
Module not found: react-relay tried to access scheduler, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
```

I was able to repro by following [the `create-react-app` tutorial](https://relay.dev/docs/en/experimental/step-by-step), using `yarn berry` instead of `yarn v1`.

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.