Skip to content

ZNTC0311: 'import' cannot be used with 'new'

‘import’ cannot be used with ‘new’

Category: Parser: Import/Export

const m = new import("./mod");

Reproduce in Playground →

See the error message for cause and resolution.