Skip to content

Typescript in Ionic 5 #40

@msacchetti

Description

@msacchetti

I followed the install instructions for typescript, and i cannot get it to work in Typescript.

npm install marker-animate-unobtrusive
npm install @types/googlemaps --save
npm install @types/marker-animate-unobtrusive --save

importing nothing, and trying to use it:

pin = new SlidingMarker()
Error: Cannot find name 'SlidingMarker'.ts(2304) any

Trying to import different ways:

import { SlidingMarker } from 'marker-animate-unobtrusive'
Error: /node_modules/@types/marker-animate-unobtrusive/index.d.ts' is not a module.ts(2306)
import { SlidingMarker } from 'SlidingMarker'
error: Cannot find module 'SlidingMarker' or its corresponding type declarations.ts(2307)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions