Focus a file in node_modules with a dependent also in node_modules. By focusing on a.js, we should force-check main.js, and only report errors there, not in node_modules. Error ------------------------------------------------------------------------------------------------------ main.js:6:1 Cannot cast `x` to `string` because `42` [1] is incompatible with `string` [2]. [incompatible-type] main.js:6:1 6| x as string; ^ References: node_modules/a.js:3:18 3| export const x = 42; ^^ [1] main.js:6:6 6| x as string; ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------------- main.js:9:21 Cannot build a typed interface for this module. You should annotate the exports of this module with types. Missing type annotation at identifier: [signature-verification-failure] 9| export function foo(x) {} ^ Error ----------------------------------------------------------------------------------------------------- main.js:9:21 Missing an annotation on this parameter. [missing-local-annot] 9| export function foo(x) {} ^ Found 3 errors The Flow server is currently in lazy mode and is only checking 2/4 files. To learn more, visit flow.org/en/docs/lang/lazy-modes Change the type of x in a.js. main.js sees it through b.js, also in node_modules, so b.js has to be merged again. Error ----------------------------------------------------------------------------------------------------- main.js:9:21 Cannot build a typed interface for this module. You should annotate the exports of this module with types. Missing type annotation at identifier: [signature-verification-failure] 9| export function foo(x) {} ^ Error ----------------------------------------------------------------------------------------------------- main.js:9:21 Missing an annotation on this parameter. [missing-local-annot] 9| export function foo(x) {} ^ Found 2 errors The Flow server is currently in lazy mode and is only checking 2/4 files. To learn more, visit flow.org/en/docs/lang/lazy-modes