Skip to content

Crash tsc --watch on adding "module": "none" to tsconfig #39597

Closed
@WORMSS

Description

@WORMSS
$ tsc --version
Version 4.0.0-dev.20200714
$ tsc --showconfig
{
    "compilerOptions": {
        "target": "es2018",
        "strict": true,
        "skipLibCheck": true
    },
    "files": [
        "./test.ts"
    ]
}

This is only an issue on 4.0.0, this was not happening on 3.9.6

Search Terms:
empty export
Code

import type { foo } from './bar'
const a: foo = {};

// Test this by running tsc on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Expected behavior:
output should be

const a = {};

Actual behavior:

const a = {}
export {};

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions