SyntaxError on types import
Nahasaki opened this issue · 1 comments
Nahasaki commented
Trying to convert imports from example
// @flow
import type { Foo } from "./foo.js";
import { type Bar, Baz } from "./extras.js";
got an error SyntaxError: ',' expected. (2:15) 1 | import type { Foo } from "./foo"; > 2 | import { type Bar, Baz } from "./extras"; | ^
kevinbarabash commented
This doesn't appear to cause an issue for https://astexplorer.net which is using v7.9.13 of @babel/parser. flow-to-ts uses the babel source directly though via a submodule. It should probably point to the same commit SHA that was used by the official babel repo to release v7.9.13.