Uncaught ReferenceError: process is not defined

前端 未结 3 2038
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 23:06

I am using node.js to create a web application. When I run the application (either by opening index.html on the browser or using the command \"npm start\" on the terminal) I

3条回答
  •  暖寄归人
    2021-01-07 23:59

    I had the same problem solved it by going into my .eslintrc.js file to configure my globals variables, adding require and process to the globals variable and setting the corresponding value equal to "writable". Hope it works for you.

    this link really helped https://eslint.org/docs/user-guide/configuring#specifying-globals

提交回复
热议问题