path is not defined in node js

technical talkiess
0

 Error :- 


C:\Users\ukv-208\Downloads\prac\expresstut\app.js:14

app.set('views',path.join(__dirname,'views'));

                ^


ReferenceError: path is not defined

    


Solution:- 

const path = require('path');


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)