I am new to publishing Angular libraries and this is my first humble attempt to publish a lib to NPM called wps-ng https://www.npmjs.com/package/wps-ng.
My Public Api file looks like https://github.com/singkara/wps-js-ng/blob/library_test/projects/wps-ng/src/public-api.ts where 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 I do npm install wps-ng in a 3rd party Angular 9 application, it fails with the error:
TS2307: Cannot find module 'wps-ng' or its corresponding type declarations.
Although, I am able to use this same library (from the dist folder) in the same project as that of the library itself but not from third party application (from node_modules folder).
Any thoughts on why this could happen?
Thanks in Advance.
moduleproperty in your lib'spackage.jsonfile. It needs to point to the compiled js version of yourpublic_api.tsfile.