Angular 6 - process is not defined when trying to serve application

后端 未结 5 1841
心在旅途
心在旅途 2020-11-30 08:43

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..         


        
5条回答
  •  萌比男神i
    2020-11-30 09:20

    This is an incompatibility with Angular v6. They removed support (shim) of process and global variables in browser.

    I suggest you to use Angular 5, till cosmic.js fixes the error. Maybe you can even open an issue for it.

提交回复
热议问题