Answer the question
In order to leave comments, you need to log in
Why does Node js throw a ReferenceError: recuire is not defined error when a module is connected?
The app.js and config.js files are created in the same place.
config.js contains
module.exports = {
a : 3,
d : 6
};
app.js contains
const config = recuire('./config');
console log(config);
I run the app.js file in the VS Code terminal, it gives an error in the terminal:
ReferenceError: recuire is not defined
at Object. (C:\Users\Dmitry\app.js:1:16)
Node js version v13.14.0.
Windows 7.
Tell me what is the reason for this error.
Screenshot
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question