This problem might arise due to version mismatch. To solve your problem you need to do following changes in your package.json file. Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0" then npm update then ng serve