I have come across some strange behaviour by importing a package into my Angular project. I have imported the following package into my project: @citation-js/core. If I attempt to use it in a component, the app is unable to render the page, showing the loading circle (image below). No error is displayed and I am at a lost. Any help would be appreciated! Thank you!
I have not done anything else, then the following:
Command to install package
npm install @citation-js/core --save
Line that causes the page to not render
import { Cite } from "@citation-js/core";
let json = await Cite.inputAsync("10.5281/zenodo.1005176");
Edit: Adding await to Cite.inputAsync
inputAsync
is returning a Promise, so you need to wait for the Promise to be settled: