SyntaxError: Unexpected token '{' in /Users/ahiataku/Desktop/express-ejs-ecommerce/views/pages/index.ejs while compiling ejs
If the above error is not helpful, you may want to try EJS-Lint:
https://github.com/RyanZim/EJS-Lint
Or, if you meant to create an async function, pass `async: true` as an option.
at new Function (<anonymous>)
at Template.compile (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/ejs/lib/ejs.js:673:12)
at Object.compile (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/ejs/lib/ejs.js:398:16)
at handleCache (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/ejs/lib/ejs.js:235:18)
at tryHandleCache (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/ejs/lib/ejs.js:274:16)
at View.exports.renderFile [as engine] (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/ejs/lib/ejs.js:491:10)
at View.render (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/express/lib/view.js:135:8)
at tryRender (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/express/lib/application.js:657:10)
at Function.render (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/express/lib/application.js:609:3)
at ServerResponse.render (/Users/ahiataku/Desktop/express-ejs-ecommerce/node_modules/express/lib/response.js:1039:7)