GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `export * as default from "module"` syntax should work as per ECMA-262 · Issue #39769 · microsoft/TypeScript

export * as default from "module" syntax should work as per ECMA-262 #39769

New issue
Copy link
New issue
Copy link
Closed
#39803
Closed
export * as default from "module" syntax should work as per ECMA-262#39769
#39803
Copy link
Assignees
sandersn
Labels
BugA bug in TypeScriptA bug in TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)New featurers for ECMAScript (a.k.a. ESNext)Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
TypeScript 4.1.0

Description

@HughCrail
Hugh Crail (HughCrail)
opened on Jul 27, 2020
Issue body actions

TypeScript Version: 4.0.0-beta

Search Terms:
ESModule, export star as default, "export * as default from"

Expected behavior:
export * as default from "module" should export the namespace of "module" as the default export.
This is valid ES Module syntax from this stage-4 proposal. See the test in test-262.
I also tested this syntax in Chrome and it was supported.

Actual behavior:
You get the following errors:

  • "Cannot find name 'from'."
  • "Identifier expected. 'default' is a reserved word that cannot be used here."
  • "';' expected."

Code

export * as default from "rollup";
Output
export * as  from ;
from;
"rollup";
Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "Latest",
    "jsx": "React",
    "module": "ESNext"
  }
}

Playground Link: Provided

Reacted by ExE Boss, ZHAO Jin-Xiang, Kubilay Kahveci, Rob Palmer, Alex Eden, Kirill Groshkov, Itay Ganor, Magnus Markling, Nate Ryall, Mateja Petrovic and 2 more
Reacted by Dmytro Demensky
Reacted by ExE Boss

Activity

  1. Daniel Rosenwasser (DanielRosenwasser)
    added
    ES NextNew featurers for ECMAScript (a.k.a. ESNext)New featurers for ECMAScript (a.k.a. ESNext)
    SuggestionAn idea for TypeScriptAn idea for TypeScript
    on Jul 27, 2020
  2. Daniel Rosenwasser (DanielRosenwasser)
    added this to the TypeScript 4.1.0 milestone on Jul 27, 2020
  3. Daniel Rosenwasser (DanielRosenwasser)
    added
    BugA bug in TypeScriptA bug in TypeScript
    and removed
    SuggestionAn idea for TypeScriptAn idea for TypeScript
    on Jul 27, 2020
  4. Daniel Rosenwasser (DanielRosenwasser)
    assigned
    Nathan Shively-Sanders (sandersn)
    on Jul 27, 2020
  5. Daniel Rosenwasser (DanielRosenwasser)
    added
    Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
    help wanted
    on Jul 27, 2020
  6. DanielRosenwasser commented on Jul 27, 2020

    @DanielRosenwasser
    Daniel Rosenwasser (DanielRosenwasser)
    on Jul 27, 2020
    Member
    More actions

    CC Wenlu Wang (@Kingwl) in case you want to take this on as a follow-up to #34903

  7. Kingwl commented on Jul 29, 2020

    @Kingwl
    Wenlu Wang (Kingwl)
    on Jul 29, 2020
    Contributor
    More actions

    Take a look soon.

  8. TypeScript Bot (typescript-bot)
    added
    Fix AvailableA PR has been opened for this issueA PR has been opened for this issue
    on Jul 29, 2020
  9. Daniel Rosenwasser (DanielRosenwasser)
    closed this as completedin #39803on Aug 10, 2020
  10. DanielRosenwasser commented on Aug 10, 2020

    @DanielRosenwasser
    Daniel Rosenwasser (DanielRosenwasser)
    on Aug 10, 2020
    Member
    More actions

    Thanks Wenlu Wang (@Kingwl)!

  11. microsoft
    locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sandersn
    Nathan Shively-Sanders (sandersn)

Labels

BugA bug in TypeScriptA bug in TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)New featurers for ECMAScript (a.k.a. ESNext)Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueA PR has been opened for this issue

Type

No type

Projects

No projects

    Milestone

    • TypeScript 4.1.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.