Skip to content

JavaScript files do not allow export default declarations #6794

Description

@DanielRosenwasser

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

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions