I am developing a very simple npm package (type-exception) with TypeScript. My tests runs without errors and I was able to publish on NPM and even I can install it in another project (project B); but when I import it as reference, VS Code throw me an Exception "cannot find 'type-exception' module" (on project B)
I have installed another package on project B without errores, so I think my package that I released on NPM has some issue, but I cannot figure what is.
Basically, I made two classes and in the main.ts file export them like this:
export { nameof } from "./reflection-helper";
export { TypeException } from "./type-exception";
My folder project structure of type-exception project is like this:
src
+-src
|--index.ts
|--reflection-helper.ts
|--type-exception.ts
|-test
|-node_modules
+-lib
|--src
|--test
The source code of "type-exception" project can be found here