dougludlow / ng2-bs3-modal

Angular Bootstrap 3 Modal Component
http://dougludlow.github.io/ng2-bs3-modal/
ISC License
261 stars 133 forks source link

Error: Uncaught (in promise): TypeError: l.Observable.merge is not a function #228

Open lucasvieceli opened 6 years ago

lucasvieceli commented 6 years ago

erro exec script "ng build --prod"

image1 image2


TypeError: l.Observable.merge is not a function
    at e.init (0.71cc388aef23055e8eea.chunk.js:1)
    at new e (0.71cc388aef23055e8eea.chunk.js:1)
    at lo (main.e6dc21c61676b0c53375.bundle.js:1)
    at ao (main.e6dc21c61676b0c53375.bundle.js:1)
    at Ho (main.e6dc21c61676b0c53375.bundle.js:1)
    at Jo (main.e6dc21c61676b0c53375.bundle.js:1)
    at Zo (main.e6dc21c61676b0c53375.bundle.js:1)
    at Ho (main.e6dc21c61676b0c53375.bundle.js:1)
    at No (main.e6dc21c61676b0c53375.bundle.js:1)
    at Object.ns [as createRootView] (main.e6dc21c61676b0c53375.bundle.js:1)
    at e.init (0.71cc388aef23055e8eea.chunk.js:1)
    at new e (0.71cc388aef23055e8eea.chunk.js:1)
    at lo (main.e6dc21c61676b0c53375.bundle.js:1)
    at ao (main.e6dc21c61676b0c53375.bundle.js:1)
    at Ho (main.e6dc21c61676b0c53375.bundle.js:1)
    at Jo (main.e6dc21c61676b0c53375.bundle.js:1)
    at Zo (main.e6dc21c61676b0c53375.bundle.js:1)
    at Ho (main.e6dc21c61676b0c53375.bundle.js:1)
    at No (main.e6dc21c61676b0c53375.bundle.js:1)
    at Object.ns [as createRootView] (main.e6dc21c61676b0c53375.bundle.js:1)
    at x (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at x (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at polyfills.5fde256ff01e2bc3f510.bundle.js:1
    at t.invokeTask (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at Object.onInvokeTask (main.e6dc21c61676b0c53375.bundle.js:1)
    at t.invokeTask (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at n.runTask (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at g (polyfills.5fde256ff01e2bc3f510.bundle.js:1)
    at <anonymous>```
lukemuller commented 6 years ago

After a long time of research it appears if you’re using Angular 5 or actually rxjs 5.5 there is an issue with importing pipeable operators. See https://github.com/telerik/kendo-angular/issues/1244. A work around is apparently to use --build-optimizer false if using the latest angular CLI.