Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Failure to resolve useBlockingPaginationFragment (and others) #485

Open
brennancaldwell opened this issue Jan 23, 2024 · 1 comment

Comments

@brennancaldwell
Copy link

BUG:
Attempt to build a rescript-relay project using Parcel results in the following error:

@parcel/core: Failed to resolve 
'react-relay/lib/relay-hooks/useBlockingPaginationFragment' from 
'./node_modules/rescript-relay/src/RescriptRelay_Fragment.bs.js'

CAUSE:
As of react-relay v16.2.0, a handful of hooks have been moved into a legacy folder in preparation for "the full rollout of the new hooks implementation" (see commit here), including FragmentResource.js, useBlockingPaginationFragment.js, useFragmentNode.js, and useRefetchableFragmentNode.js. As such, rescript-relay's attempt to import fails.

DEPS:

"react-relay": "^16.2.0",
"relay-runtime": "^16.2.0",
"rescript": "^11.0",
"rescript-relay": "3.0.0-rc.3",
@zth
Copy link
Owner

zth commented Jan 23, 2024

Thank you! Workaround for now: Stay on Relay 16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants