I recently added a new module using npm and now I'm trying to use it in my typescript file.
npm install marker-animate-unobtrusive --save
import SlidingMarker = require('marker-animate-unobtrusive');
Unfortunately, when I try to access the module, I encounter this error:
//Error TS2307: Cannot find module 'marker-animate-unobtrusive'
After searching for a solution, I came across suggestions to adjust compiler options or create a d.ts file for Type Script to recognize the module. However, none of these methods have worked for me so far. I am utilizing Angular 2 and Ionic 2 in this project, in case that information is relevant.
If anyone can provide some guidance, I would greatly appreciate it!