Skip to content

ES2015 named imports fail from module declared with export= #7248

Closed

Description

Given the below code:

var foo = {a: "test"};
export = foo;

The below is an error ("Module './mod1' has no exported member 'a'"):

import {a} from "./mod1"
a.toString();

The below however is fine (which is morally equivalent)

import * as foo from "./mod1"
foo.a.toString();

Behavior is in 1.8 and master.

Activity

  1. added
    Fixed
    on Jun 20, 2016
  2. billti commented on Jun 20, 2016

    @billti
    MemberAuthor

    Verified this is fixed in master.

  3. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions