Cannot find Typescript module even though tsc successfully manages to resolve it
问题 I have a Node.js project written in Typescript which is expected to run as a CLI, and am having trouble to import a module located out of the node_modules directory using an absolute path (relative paths work fine). It might be important to mention that I am using the oclif framework for building my CLI. My project is organized as follows: cli |--node_modules |--src |--my-module.ts |--subdir |--index.ts Within my-module.ts I have: export class MyClass { myClassFcn(s: string) { return 'result'