Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

SyntaxError on types import #268

Open
Nahasaki opened this issue Mar 31, 2021 · 1 comment
Open

SyntaxError on types import #268

Nahasaki opened this issue Mar 31, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Nahasaki
Copy link

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 kevinbarabash added the bug Something isn't working label Apr 1, 2021
@kevinbarabash
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants