I am getting the following error when I try to serve my angular 6 application using cosmicjs:
Uncaught ReferenceError: process is not defined at Object..
This is an incompatibility with Angular v6. They removed support (shim) of process and global variables in browser.
process
global
I suggest you to use Angular 5, till cosmic.js fixes the error. Maybe you can even open an issue for it.