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..
To fix the problem, I added the following lines to 'polyfills.ts' file,
(window as any).global = window; global.Buffer = global.Buffer || require('buffer').Buffer; global.process = require('process');