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

后端 未结 5 1858
心在旅途
心在旅途 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条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 09:34

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

    Adding the following before your closing into your index.html will remove the error.

    
    

提交回复
热议问题