It's always look like this :
Error: Could not find the include file "('../../partials/head')" at getIncludePath (/root/opentrade/node_modules/ejs/lib/ejs.js:162:13) at includeSource (/root/opentrade/node_modules/ejs/lib/ejs.js:306:17) at /root/opentrade/node_modules/ejs/lib/ejs.js:702:26 at Array.forEach (<anonymous>) at Template.generateSource (/root/opentrade/node_modules/ejs/lib/ejs.js:678:15) at Template.compile (/root/opentrade/node_modules/ejs/lib/ejs.js:557:12) at Object.compile (/root/opentrade/node_modules/ejs/lib/ejs.js:389:16) at handleCache (/root/opentrade/node_modules/ejs/lib/ejs.js:212:18) at tryHandleCache (/root/opentrade/node_modules/ejs/lib/ejs.js:251:16) at View.exports.renderFile [as engine] (/root/opentrade/node_modules/ejs/lib/ejs.js:482:10)
It's always look like this :
Error: Could not find the include file "('../../partials/head')" at getIncludePath (/root/opentrade/node_modules/ejs/lib/ejs.js:162:13) at includeSource (/root/opentrade/node_modules/ejs/lib/ejs.js:306:17) at /root/opentrade/node_modules/ejs/lib/ejs.js:702:26 at Array.forEach (<anonymous>) at Template.generateSource (/root/opentrade/node_modules/ejs/lib/ejs.js:678:15) at Template.compile (/root/opentrade/node_modules/ejs/lib/ejs.js:557:12) at Object.compile (/root/opentrade/node_modules/ejs/lib/ejs.js:389:16) at handleCache (/root/opentrade/node_modules/ejs/lib/ejs.js:212:18) at tryHandleCache (/root/opentrade/node_modules/ejs/lib/ejs.js:251:16) at View.exports.renderFile [as engine] (/root/opentrade/node_modules/ejs/lib/ejs.js:482:10)
maybe i wrong ?
but refer to this site https://www.freecodecamp.org/news/how-to-use-ejs-templating-in-a-node-js-application-ea9347a96c65/
<% include ../partials/head %>
and works
Ubuntu 18.04 - Node v12.6.0