[Vue] error 'process' is not defined 해결하기

bella·2023년 5월 7일
0

npm run serve를 실행하던 도중 해당 오류가 발생했다.

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in [eslint]

error  'process' is not defined no-undef
✖ 1 problem (1 error, 0 warnings)

.eslintrc.js 파일에서

	"env": {
        "browser": true,
        "es2021": true,
        "node": true
    },

env 부분의 browser를 node로 변경해주거나, "node": true를 추가해준다.

0개의 댓글