Just starting out with publishing Angular libraries, I've made my first attempt to publish a lib on NPM called wps-ng https://www.npmjs.com/package/wps-ng.
You can check out my Public API file here https://github.com/singkara/wps-js-ng/blob/library_test/projects/wps-ng/src/public-api.ts. In this file, I have exported the following:
export * from './lib/wps-ng.service';
export * from './lib/wps-ng.component';
export * from './lib/wps-ng.module';
...
However, when attempting to npm install wps-ng in a third-party Angular 9 application, it throws an error:
TS2307: Cannot find module 'wps-ng' or its corresponding type declarations.
Oddly enough, I am able to use this library (from the dist folder) within the same project as the library itself, but not from a third-party application (inside node_modules folder).
Any insights into why this might be occurring?
Appreciate any help. Thank you.