Friday 24 April 2020

Why console.log and errors aren't shown in chrome dev tools when using EJS?

I have a simple express setup with ejs layout:app.use(express.static('public')) app.use(expressLayouts); app.set('view engine', 'ejs'); My register.ejs with a script tag at bottom: In my index.js in public folder:console.log('Hello world!');console.log doesn't display or errors only show at the top right corner of the dev tools.Can anyone explain?

Submitted April 25, 2020 at 02:35AM by huyzzz

No comments:

Post a Comment