question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when building with ng build --prod

See original GitHub issue

My app will build successfully using ng build --prod but when i load the app in the browser I am confronted with the error r.Observable.merge is not a function. Screenshots below:

image

Then clicking on that error takes me to

image

The app doesn’t have this error when built with ng build or ng build --aot=true. Only has the error when built with ng build --prod

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Vevlcommented, Aug 17, 2018

Hey, @swiety85 just wanna let you know that I update my app to angular 6 and everything works fine, with or without --prod or --prod --build-optimizer.

1reaction
swiety85commented, Feb 15, 2018

Can you add import 'rxjs/add/operator/merge'; on top of the component that renders gridster and check if problem still occure?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng build works but ng build --prod gives an error
I'm building a very simple site. When i do ng build it works but ng build --prod gives an error. I tried ng...
Read more >
Angular `ng build --prod` Error - Medium
You built a library, and tried to use it in a project. When building with --prod you see this unhelpful error: 'Unexpected value...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
Many common build errors may occur as a result of rebuilding your app while using ng serve or running ng build or ng...
Read more >
Toolips ng build –prod error - MDBootstrap
when I was trying to build production of my project we got this error: in Error: TypeError: Cannot read property 'kind' of undefined...
Read more >
ng build error: Invalid version: "15.2-15.3" #22606 - GitHub
Bug report Command (mark with an x) new build serve test e2e generate add update lint extract-i18n run config help version doc Description ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found