I have this relay fragment component but Flow says there's an error:
Error:
Cannot build a typed interface for this module. You should annotate the exports of this module with types. Cannot determine the type of this call expression. Please provide an annotation, e.g., by adding a type cast around this expression.Flow(signature-verification-failure)
// @flow
import { type Node } from 'react';
import { createFragmentContainer, graphql } from 'react-relay';
import type { MyComponent } from './__generated__/MyComponent.graphql';
const RequestTitle = (props: {| request: MyComponent |}): Node => {
return (
<Box color="white" display="flex" direction="row" alignItems="center"></Box>
);
};
export default createFragmentContainer(RequestTitle, {
request: graphql`
fragment MyComponent on TakedownRequest {
id
title
primaryType
}
`,
});