*** process.env.ENV is not defined, assuming 'prod' env

為{幸葍}努か 提交于 2019-12-02 05:20:12

问题


I am unable to open My JHipster + Angular 2 (Gateway) Application home page with port 8080 (which is given at server port in application-dev.yml) and Getting following exception in console

*** process.env.ENV is not defined, assuming 'prod' env

The Same application is running fine on port 9000 (which is given by yarn) and giving exception like below in console.

process.env.ENV is not defined, assuming 'prod' env
chrome-extension://kbfnbcaeplbcioakkpcpgfkobkghlhen/src/js/bundle.js:4776 *** 

My problem is if I use 9000 port (Given by yarn) unable to communicate with other microservices applications.

Why am I getting the above exception?


回答1:


The above warning is not coming from your app. It is actually coming from one of the chrome extension (Grammarly for Chrome). Disabling the extension solved problem!!

check this https://github.com/facebookincubator/create-react-app/issues/2722



来源:https://stackoverflow.com/questions/44939302/process-env-env-is-not-defined-assuming-prod-env

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!