Typescript compiler doesn't fail when importing {} from a module that doesn't exist #20576
Labels
Breaking Change
Would introduce errors in existing code
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 2.6.2 (tried with 2.7.0-dev.20171208)
Code
import {} from 'nothing';
Expected behavior:
tsc should fail with an error "Cannot find module 'nothing'", just like what it does when we say
import 'nothing';
or
import {nothing} from 'nothing';
or
import * as nothing from 'nothing';
Actual behavior:
Typescript compiler is successful without any error.
The text was updated successfully, but these errors were encountered: