Open renannobile opened 6 years ago
I'm currently facing a misterious problem when building my Angular application.
I use Angular-CLI and run ng build --prod --aot. I then deploy it to Firebase using firebase deploy.
ng build --prod --aot
firebase deploy
The application starts fine but when it gets to this.searchText.valueChanges.startWith(null), it throws an error because startWith is undefined:
this.searchText.valueChanges.startWith(null)
Code runs ok on localhost.
If this is not an issue with RxJS I'm sorry. Thanks for your time.
This is probably an issue for RxJS 5 which is not maintained here.
But you likely need to import the method using the import 'rxjs/add/operator/startWith'
import 'rxjs/add/operator/startWith'
I'm currently facing a misterious problem when building my Angular application.
I use Angular-CLI and run
ng build --prod --aot
. I then deploy it to Firebase usingfirebase deploy
.The application starts fine but when it gets to
this.searchText.valueChanges.startWith(null)
, it throws an error because startWith is undefined:Code runs ok on localhost.
If this is not an issue with RxJS I'm sorry. Thanks for your time.