中安拓也のブログ

プログラミングについて書くブログ

2018-03-01から1日間の記事一覧

AngularにおけるRxJSのインポートについて整理した

はじめに ERROR in src/app/app.component.ts(17,6): error TS2339: Property 'map' does not exist on type 'Observable<{}>'. AngularでRxJSを書いていて、上のエラーみたく"〇〇オペレータがないよ!!"と怒られることが多々あるので、RxJSのインポート方…

Angular CLIで遭遇したエラー: Error: Cannot find module '@angular-devkit/core'

エラーに遭遇した状況 Angular CLIを使って、Angularプロジェクトを作成した後ng serveを実行してアプリを起動しようとしたら発生した。 $ ng new new-app $ cd new-app $ ng serve # エラー発生!! module.js:538 throw err; ^ Error: Cannot find module '@…