-
-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): use individual RxJS imports for webpack treeshacking
Fixes #731
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't you forget mergeAll? Aot builds with angular cli works, but there's error in call a12434.mergeAll() in uglified get() and stream() code.
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vecernik I have the same error, How did you solve it?
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, I had to lock ngx-translate back to 9.0.0, which works ok.
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vecernik thanks
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's interesting that the error of a12434.mergeAll() appears after a successful aot build in runtime.
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This project doesn't even seem to contain calls to mergeAll anywhere ( at least search doesn't produce any results in code ). You could try to check your project source first.
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this project doesn't use mergeAll, and the generated built files don't contain mergeAll anywhere
141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vecernik you probably are using Observer.mergeAll currently the shift in using RxJS is to use lettable operators which do not monkeypatch Observer prototype.
You should read https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md and either move to using pipe and lettable operators yourself or
import 'rxjs/add/operator/mergeAll';
somewhere in your code.141e23e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bug I mentioned during a release of 9.0.1 could be related to another bug in RxJs. With 9.0.2 and latest RxJs it looks ok, thank you guys.