2017-11-14 1 views
1

호환되는 C 게요 서명이없는 내가 서버를 ng를 실행하려고하면, 빌드가오류 : 유형에 호출 서명이없는 표현식을 호출 할 수 없습니다. 유형은 '나는 내 각 프로젝트에 <a href="https://github.com/mapbox/polylabel" rel="nofollow noreferrer">https://github.com/mapbox/polylabel</a>를 사용하는 것을 시도하고있다

error TS2349: Cannot invoke an expres ion whose type lacks a call signature. Type node_modules/@types/polylabel/index"'has no compatible c ll signatures. 

오류 다음에 따라 실패 index.ts 코드입니다

// Type definitions for polylabel 1.0 
    // Project: https://github.com/mapbox/polylabel 

    // Definitions by: Denis Carriere <https://github.com/DenisCarriere> 
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 

    /** 
    * Polylabel returns the pole of inaccessibility coordinate in [x, y] format. 
    * 
    * @param polygon - Given polygon coordinates in GeoJSON-like format 
    * @param precision - Precision (1.0 by default) 
    * @param debug - Debugging for Console 
    * @example 
    * var p = polylabel(polygon, 1.0); 
    */ 
    declare function polylabel(polygon: number[][][], precision?: number, debug?: boolean): number[]; 
    declare namespace polylabel {} 
    export default polylabel; 

답변

0

분명히 전 세계적으로 폴리 라벨을 설치하지 않았습니다. npm install polylabel을 실행하면 문제가 해결되었습니다.

관련 문제