You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an Angular project and I am trying to import a Spirit animation.
I have installed the spirit npm package via
npm i spiritjs
I have added the script to the list of loaded scripts
"scripts": ["./node_modules/spiritjs/dist/spirit.js"]
Now, when I try to import the module into one of my modules and use it in appComponent:
import * as spirit from 'spiritjs';
constructor() {
spirit.loadAnimation({...})
}
TS throws 2 errors:
ERROR in node_modules/spiritjs/spiritjs.d.ts(1,64): error TS2307: Cannot find module 'gsap'.
src/app.component.ts(24,12): error TS2339: Property 'loadAnimation' does not exist on type 'SpiritStatic'.
The text was updated successfully, but these errors were encountered:
I have an Angular project and I am trying to import a Spirit animation.
I have installed the spirit npm package via
npm i spiritjs
I have added the script to the list of loaded scripts
"scripts": ["./node_modules/spiritjs/dist/spirit.js"]
Now, when I try to import the module into one of my modules and use it in appComponent:
import * as spirit from 'spiritjs';
constructor() {
spirit.loadAnimation({...})
}
TS throws 2 errors:
ERROR in node_modules/spiritjs/spiritjs.d.ts(1,64): error TS2307: Cannot find module 'gsap'.
src/app.component.ts(24,12): error TS2339: Property 'loadAnimation' does not exist on type 'SpiritStatic'.
The text was updated successfully, but these errors were encountered: