Skip to content

JavaScript files do not allow export default declarations #6794

Closed

Description

From http://stackoverflow.com/questions/35134618/typescript-1-8-es2015-imports-in-js-files

export default "hello";

Gives the incorrect error:

hello.js(1,1): error TS8003: 'export=' can only be used in a .ts file.

Metadata

Metadata

Labels

BugFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions