@tbaumer22 wrote:
Hey everyone,
I’m attempting to use Apple’s MusicKitJS framework inside of my Ionic 5 project with Angular. Originally, I attempted to reference the framework from a script tag inside of my index.html file, but I soon realized that Angular can not interact with these (or at least for this instance). Then, I proceeded to find an npm package containing all the TS definitions for Apple’s MusicKitJS: https://www.npmjs.com/package/musickit-typescript
Now, I can’t figure out how to use these definitions with my project after following the instructions. This is the import code I have on a page, and I can’t seem to get it to find the package:
import { MusicKit } from 'musickit-typescript';
If anybody can help me figure out what I’m doing wrong here, it would be very much appreciated.
Thank you!
Tate
Posts: 2
Participants: 2