I'm attempting to integrate the Parse-server JS sdk into an angular 8 application, but no matter what approach I take, I encounter errors.
Here is what I have tried:
- Creating custom typings.d.ts files with
declare var parse: any;
- Installing the @types/parse package
- Importing using
import * as parse from 'parse'
orimport parse from 'parse'
- Exploring suggestions provided by the Angular documentation on Using Published Libraries
ERROR in node_modules/@types/parse/index.d.ts:498:14 - error TS2456: Type alias 'Encode' circularly references itself.
Here is a StackBlitz link showcasing the package I am trying to implement:
https://stackblitz.com/edit/angular-xzapp7
While the StackBlitz displays different errors, all issues within VSCode stem from this Encode
problem.
Is there a way to instruct Angular and VSCode to overlook these errors and allow me to code without autocompletion or type checking for the parse import?