Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Attempting to use typescript definitions for Apple MusicKitJS in Ionic 5

$
0
0

@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: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles