Skip to content

Export is not defined #10044

@jaejun-choi

Description

@jaejun-choi

Bug Report

Current Behavior
SyntaxError: Export 'Foo' is not defined

Input Code

interface Foo {}

export type { Foo }

Expected behavior/code
no error

Babel Configuration (.babelrc, package.json, cli command)
flow plugin

Environment

  • Babel version(s): 7.4.5
  • Node/npm version: Node 11.13 / npm 6.7

Possible Solution
flowParseInterfaceish() should call checkLVal() or scope.declareName()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions