Angular 4 production build throwing errors for HTTP do() and map() functions -
i'm attempting deploy production build of app onto apache server.
i can fine using development build (ng build) when try ng build --prod syntax errors.
i've tested app ng serve --prod --sm=true command , found problem every call http service on services.
for live examples visit www.gamerfinder.net/dev
in console errors
error typeerror: object doesn't support property or method 'do' vendor.37ef2a1036483bd42043.bundle.js (1,4605) this happens on page makes http call (which every page except 2 of them).
unfortunatley can't same error show after using ng build --prod --sm (i syntax errors way)
can me fix error? thanks
(as side note: know how can same errors ng serve show on ng build?... make easier show on gamerfinder.net/dev)
edit
i've uploaded source code app at: https://github.com/jamiemac262/gamerfinder
i hope helps :)
in order use rxjs operators, should imported - unless you're importing entire rxjs package, avoided.
there should
import 'rxjs/add/operator/map'; and/or
import 'rxjs/add/operator/do'; in files use these operators. alternatively, can considered 'core' operators , imported in common place, polyfills.ts.
Comments
Post a Comment