marker-animate-unobtrusive: Unable to import in Angular2 with TypeScript.

Hi, First of all, thanks for this awesome library. I am trying to import this library into my angular2 project but getting error:

File '/Users/.../node_modules/@types/marker-animate-unobtrusive/index.d.ts' is not a module.

I have followed this process for installation:

npm install marker-animate-unobtrusive  --save
npm install @types/marker-animate-unobtrusive --save
typings install dt~google.maps --global --save
typings install dt~marker-animate-unobtrusive --global --save

I am trying to import like this:

import * as SlidingMarker from 'marker-animate-unobtrusive';

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

Hi @aryarohit07 was you able to import this module successfully? i’m in the same point than you

@coderroggie using your answer the error disappeared. Thanks a lot !

@viskin I did finally get these to load within my ionic 2/typescript 2 project using the following import statement:

import * as SlidingMarker         from "../../../node_modules/marker-animate-unobtrusive";

Hope that helps someone else out there. Thanks for looking into it!