Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument of type '{ icon: DivIcon; }' is not assignable to parameter of type 'MarkerOptions | undefined'. #40

Open
cornelius-agrippa opened this issue Feb 20, 2017 · 0 comments

Comments

@cornelius-agrippa
Copy link

cornelius-agrippa commented Feb 20, 2017

Hello,

I was trying to run this project for the first time but I'm having some trouble with it.

I did the usual npm install and then npm run dev to get it running, however I get the following errors:

ERROR in [at-loader] src\ui\map\SensorMap.tsx:78:87
    TS2345: Argument of type '{ icon: DivIcon; }' is not assignable to parameter of type 'MarkerOptions | undefined'.
  Type '{ icon: DivIcon; }' is not assignable to type 'MarkerOptions'.
    Types of property 'icon' are incompatible.
      Type 'DivIcon' is not assignable to type 'Icon | undefined'.
        Type 'DivIcon' is not assignable to type 'Icon'.
          Types of property 'options' are incompatible.
            Type 'DivIconOptions' is not assignable to type 'IconOptions'.
              Types of property 'iconUrl' are incompatible.
                Type 'string | undefined' is not assignable to type 'string'.
                  Type 'undefined' is not assignable to type 'string'.

ERROR in [at-loader] src\ui\map\SensorMap.tsx:112:55
    TS2345: Argument of type '{ icon: DivIcon; }' is not assignable to parameter of type 'MarkerOptions | undefined'.
  Type '{ icon: DivIcon; }' is not assignable to type 'MarkerOptions'.
    Types of property 'icon' are incompatible.
      Type 'DivIcon' is not assignable to type 'Icon | undefined'.
        Type 'DivIcon' is not assignable to type 'Icon'.

ERROR in [at-loader] src\ui\map\SensorMap.tsx:115:9
    TS2532: Object is possibly 'undefined'.

ERROR in [at-loader] src\ui\map\SensorMap.tsx:126:15
    TS2532: Object is possibly 'undefined'.
webpack: Failed to compile.

I have a feeling something's wrong with the leaflet package, but I could be wrong.

Do you have any idea what could be wrong?

Node version is 7.5.0
NPM version is 4.1.2

My best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant