Try to search your question here, if you can't find : Ask Any Question Now ?

ESLint – 'process' is not defined

HomeCategory: stackoverflowESLint – 'process' is not defined
Avatarpragati asked 4 months ago

I am using ESLinter for a simple node project. Below is the only code I have in index.js:

const express = require('express');
const app = express();

app.get('/', (req, res) => {
    res.send({
        hi: 'there'
    });
});

const PORT = process.env.PORT || 5000;
app.listen(PORT);

I am using VSCode editor. It automatically runs ESLint for JS code.

In the IDE, I see below error for last but one line –

[eslint] 'process' is not defined. (no-undef)

Any Idea what’s wrong?

1 Answers
Best Answer
Avatarnaveen answered 4 months ago
Your Answer

20 + 16 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com