While compiling my Angular project, I encountered an error related to a package installed via NPM:
node_modules/astrocite-ris/index.d.ts:36:39 - error TS2503: Cannot find namespace 'CSL'.
The package named Astrocite contains a subpackage called astrocite-ris. I have added it to the package.json file as
"astrocite": "^0.16.4",
and imported it into a service using the following code:
import { parse } from 'astrocite-ris';
The error is being shown in the index.d.ts file in VSCode.