Skip to content

TS1193 in JS FileΒ #48291

Closed
Closed
@NickHeiner

Description

@NickHeiner

Bug Report

πŸ”Ž Search Terms

ts1193
"An export declaration cannot have modifiers."

πŸ•— Version & Regression Information

  • This changed between versions 4.5.5 and 4.6.2

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

/**
 * @deprecated
 */
export { default as C } from './include-c';

πŸ™ Actual behavior

I got error TS1193: An export declaration cannot have modifiers. When I remove the @deprecated tag, it disappears.

πŸ™‚ Expected behavior

Having a @deprecated tag should not trigger this error.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions