-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Typescript version: 2.6.1
Code
import foo from 'some/valid/module'
> no errors!
import foo from 'something/nonexistent'
> TS2307: Cannot find module 'something/nonexistent'
import 'something/nonexistent'
> no errors!
Expected behavior:
Import statements that don't import any symbols should be checked the same as any other.
Actual behavior:
If you don't import a symbol, the import target is not validated to resolve correctly.
tsconfig.json:
{
"compilerOptions": {
"jsx": "react",
"moduleResolution": "node",
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": true,
"strictNullChecks": true,
"target": "ES6"
},
}
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug