Skip to content

"amd" missing from error message for error TS1323 #33762

@dasa

Description

@dasa

TypeScript Version: 3.7.0-dev.20191002

Search Terms:
amd, dynamic import, error message

Code

import("./mymodule.js");

"module" set to "es2015" in tsconfig.json.

Expected behavior:

error TS1323: Dynamic import is only supported when '--module' flag is 'amd' or 'commonjs' or 'esNext' or 'umd'.

Actual behavior:

error TS1323: Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions