「インターフェース 『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
どこに問題があるのでしょうか。
このようなエラーで最も適切なことは、エラーのテキストをオンラインで検索することです。私は、おそらく、ノード入力を再インストールすると、https://www.garysieling.com/blog/fixing-typescript-error-error-ts2430-interface-nodebuffer-incorrectly-extends-interface-uint8arrayの助けになることがわかりました。それ以外の場合は、https://github.com/types/env-node/issuesでエラーを記録できます。 –
問題が何であるかを確認するには、index.d.tsのコードを参照する必要があります。 – rafraph