Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

startWith undefined on aot build #1535

Open
renannobile opened this issue Dec 6, 2017 · 1 comment
Open

startWith undefined on aot build #1535

renannobile opened this issue Dec 6, 2017 · 1 comment

Comments

@renannobile
Copy link

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.

The application starts fine but when it gets to this.searchText.valueChanges.startWith(null), it throws an error because startWith is undefined:

image

Code runs ok on localhost.

If this is not an issue with RxJS I'm sorry.
Thanks for your time.

@paulpdaniels
Copy link
Contributor

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants