Open matthewoates opened 3 years ago
Additionally: (first few are fixed by declaring $FlowFixMeProps
)
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ client/node_modules/react-relay/ReactRelayFragmentContainer.js.flow:36:23
Cannot resolve name $FlowFixMeProps. [cannot-resolve-name]
33│ RelayContext,
34│ } from 'relay-runtime';
35│
36│ type ContainerProps = $FlowFixMeProps;
37│ type ContainerState = {
38│ data: {[key: string]: mixed, ...},
39│ prevProps: ContainerProps,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ client/node_modules/react-relay/ReactRelayPaginationContainer.js.flow:349:40
Cannot resolve name $FlowFixMeProps. [cannot-resolve-name]
346│ connectionConfig.getFragmentVariables ||
347│ createGetFragmentVariables(metadata);
348│
349│ return class extends React.Component<$FlowFixMeProps, ContainerState> {
350│ static displayName = containerName;
351│
352│ _isARequestInFlight: boolean;
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ client/node_modules/react-relay/ReactRelayRefetchContainer.js.flow:55:23
Cannot resolve name $FlowFixMeProps. [cannot-resolve-name]
52│ } from 'relay-runtime';
53│ import type {FragmentSpecResolver} from 'relay-runtime';
54│
55│ type ContainerProps = $FlowFixMeProps;
56│
57│ type ContainerState = {
58│ data: {[key: string]: mixed, ...},
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ client/node_modules/relay-runtime/store/RelayModernQueryExecutor.js.flow:620:12
Missing type annotation for U. U is a type parameter declared in function type [1] and was implicitly instantiated at
call of method map [2]. [missing-annot]
client/node_modules/relay-runtime/store/RelayModernQueryExecutor.js.flow
617│ this._incrementalPayloadsPending = false;
618│ this._incrementalResults.clear();
619│ this._source.clear();
[2] 620│ return responses.map(payloadPart => {
621│ const relayPayload = normalizeResponse(
622│ payloadPart,
623│ this._operation.root,
624│ ROOT_TYPE,
625│ {
626│ getDataID: this._getDataID,
627│ treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,
628│ path: [],
629│ },
630│ );
631│ this._publishQueue.commitPayload(
632│ this._operation,
633│ relayPayload,
634│ this._updater,
635│ );
636│ return relayPayload;
637│ });
638│ }
639│
640│ /**
/private/tmp/flow/flowlib_af9e59e/core.js
[1] 235│ map<U>(callbackfn: (value: T, index: number, array: $ReadOnlyArray<T>) => U, thisArg?: mixed): Array<U>;
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue
After upgrading to the latest version of react-relay and flow, I'm getting the following errors:
and I suspect it's because
react-relay/hooks.js.flow
references relative files:These files are not available at
./relay-experimental/*
but they are available at./lib/relay-experimental/*
..flowconfig
: