Flow has a version field in .flowconfig that allows you to specify a semver range. When starting Flow it will check for compatibility and fail if it doesn't match l. At FB we even have a Flow wrapper script that will start the correct version so you dont even need to install.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
If you add typescript as a dev dependency it'll fix the version.
-
Oh sweet! Thanks for the pointer. I'm really having a hard time trying to find the right place in the TS docs. I'm surprised it's not a larger criticism amongst the community.
- 1 more reply
New conversation -
-
-
TS should always be a dev dependency IMO. I've argued repeatedly for scrubbing the global install instructions everywhere we have it but it's a work in progress. /cc
@drosenwasserThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
could try a .vscode/settings.json file with "typescript.tsdk": "node_modules/typescript/lib" which points vscode to the installed version
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Vs code prefers to use built in TS versus the one in node modules. Similar with global vs app specific flow bin. Annoying because it’s fine until it’s very much not
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 
