2017-06-23 10 views
-2

角度材料にはいくつかの変更があります。今すぐ日付ピッカーと他の機能が追加されました。最新版の角度を持つようにプロジェクトを更新する方法。 は、私は更新しようとしたが、私はこの問題を解決するためにどのようにこれらのエラー最新の角度に更新

Class 'MdOptgroup' incorrectly implements interface 'Can 
Disable'. 
Property 'disabled' is missing in type 'MdOptgroup'. 

node_modules/@angular/core/index"' has no exported member 'Renderer2'. 

Class 'MdTab' incorrectly implements interface 'CanDisable'.Property 'disabled' is missing in type 'MdTab'. 


Type '(new (...args: any[]) => CanDisable) & typeofMdTabLabelWrapperBase' is not a constructor function type. 

Class 'MdToolbar' incorrectly implements interface 'CanColor'. 
Property 'color' is missing in type 'MdToolbar'. 

ERROR in Error encountered resolving symbol values statically. Calling function 'InjectionToken', function calls are not supported. Consider replacing the function or lambda with a refe 
rence to an exported function, resolving symbol MATERIAL_SANITY_CHECKS in /node_modules/@angular/material/typings/index.d.ts, resolving symbol MdCommonModule in node_modules/@angular/material/typings/index.d.ts, resolving symbol MdCommonModule in /node_modules/@angular/material/typings/index.d.ts 
webpack: Failed to compile. 

を持つのでしょうか?

+0

マイグレーションガイドを熟読して、特定のAPIの変更に伴い、あなたのコードが苦しんでいるのを確認してください。 – Makoto

+0

マイグレーションガイド(5月下旬または6月上旬の最新の変更を意味します)を検索しましたが、見つからませんでした。 – edkeveked

+0

エラーを追加しました。だから私の推測では、エラーの大部分は@ angular/materialモジュール@ – edkeveked

答えて

1

プロジェクトでAngularの最新バージョンを取得するには、プロジェクト内でグローバル角度と角度を更新する必要があります。私は2017/6/24の最新バージョン番号をハードコーディングしています:
npm update -g "@angular/[email protected]グローバルに更新してください。
とプロジェクトディレクトリ内に:
npm update "@angular/[email protected]プロジェクトを更新します。

次にプロジェクトの角度素材をアップグレード:
npm update "@angular/[email protected]

あなたが更新を必要とする他のパッケージを見つけることがnpm outdatednpm updateが役に立つかもしれません。

これは、「最新のバージョンの角を持つようにプロジェクトを更新する方法」という質問に答えます。私はあなたが投稿しているエラーをまだ見ていないので、そこでは助けられません。

+0

に起因するので、リンクをたどったのでhttps://stackoverflow.com/questions/44729836/update-angular-to-latest/44734137#44734137 – edkeveked

関連する問題