For some reason one of the codegen plugins is not happy with $ type prefix, causing some types references to be generated without $ in the prefix therefore the type is undefined. Example in my generated file:
// Type is declared with $ prefix
declare type $ContentJsonFieldsEnum = $Values<typeof $ContentJsonFieldsEnumValues>;
declare type $ContentJsonSortInput = {|
fields?: ?Array<?ContentJsonFieldsEnum>, // Type is referenced without prefix
order?: ?Array<?$SortOrderEnum>,
|};
removing $ from typePrefix seems to solve the issue.
For some reason one of the codegen plugins is not happy with
$
type prefix, causing some types references to be generated without$
in the prefix therefore the type is undefined. Example in my generated file:removing
$
from typePrefix seems to solve the issue.