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.
BUG: Attempt to build a
rescript-relay
project using Parcel results in the following error: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), includingFragmentResource.js
,useBlockingPaginationFragment.js
,useFragmentNode.js
, anduseRefetchableFragmentNode.js
. As such,rescript-relay
's attempt to import fails.DEPS: