3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
396 stars 401 forks source link

Could not find the include file "('../../partials/head')" #386

Open MonkeyD-Core opened 2 years ago

MonkeyD-Core commented 2 years ago

It's always look like this : Error: Could not find the include file "(&#39;../../partials/head&#39;)" 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