2017-02-20 5 views
1

「インターフェース 『NodeBuffer』が誤ってインタフェースのUint8Array "を拡張し、」私はこのエラーを取得する:活字のエラー私は私のアンギュラアプリケーションをコンパイルしようとしているとき

ERROR in ...\src\page-sidebar\typings\browser\ambient\node\index.d.ts (426,11): error TS2430: Interface 'NodeBuffer' incorrectly extends interface 'Uint8Array'. Types of property 'fill' are incompatible. Type '(value: any, offset?: number, end?: number) => Buffer' is not assignable to type '(value: number, start?: number, end?: number) => this'. Type 'Buffer' is not assignable to type 'this'.

私の活字体とタイピングを最新バージョンに更新されます。

"typescript": "2.1.6", 
"typings": "2.1.0 

どこに問題があるのでしょうか。

+0

このようなエラーで最も適切なことは、エラーのテキストをオンラインで検索することです。私は、おそらく、ノード入力を再インストールすると、https://www.garysieling.com/blog/fixing-typescript-error-error-ts2430-interface-nodebuffer-incorrectly-extends-interface-uint8arrayの助けになることがわかりました。それ以外の場合は、https://github.com/types/env-node/issuesでエラーを記録できます。 –

+0

問題が何であるかを確認するには、index.d.tsのコードを参照する必要があります。 – rafraph

答えて

1

ノードの入力定義を更新してください。ランニングtypings i env~node -SG私のために働いた。私はここに解決策を見つけたhttps://github.com/typings/typings/issues/554

私はそれが役立ちます。

+0

完璧な答え! –

関連する問題