I’m using flow with vscode but had the same problem. I solved it with these steps:
-
Install the extension Flow Language Support
-
Disable the built-in TypeScript extension:
- Go to Extensions tab
- Search for @builtin TypeScript and JavaScript Language Features
- Click on Disable