Closed
Description
TypeScript Version: 2.4.1
Code
// A *self-contained* demonstration of the problem follows...
import module = require('module-in-node_modules-with-jsdoc-annotations');
Compiling with commonjs
module resolution, and the --allowJS
and --checkJS
compiler options.
Expected behavior:
- Typescript should be able to "find" any modules that are installed (e.g. in "node_modules"), even if it doesn't have type definitions for them.
- Typescript should be able to rely on jsdoc annotations within those modules for type checking and language services.
Actual behavior:
[ts] Cannot find module 'module-in-node_modules-with-jsdoc-annotations'.
Metadata
Metadata
Assignees
Labels
No labels