Skip to content

Typescript 2.6 errors on export default  #999

@sandersn

Description

@sandersn

Version

3.0.0

Reproduction link

microsoft/TypeScript#18444

Steps to reproduce

What is expected?

No error.

What is actually happening?

Error: The expression of an export assignment must be an identifier or qualified name in an ambient context.


This error is new in Typescript 2.6. It disallows the export of expressions, including object literals like { Store, install }. We found this error when testing popular packages with Typescript 2.6 RC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions