Nodejs can work well in v1.0.0, but failure in v2.3.1
in package.json : "ejs": "latest", v2.3.1 is installed. When I exec node, it prompts an error. Error: ENOENT, no such file or directory '/includes/list.html' at Object.fs.openSync (fs.js:438:18) at Object.fs.readFileSync (fs.js:289:15) at includeSource (/Users/xxx/node_modules/ejs/lib/ejs.js:194:17) at /Users/xxx/node_modules/ejs/lib/ejs.js:512:24 at Array.forEach (native) at Object.Template.generateSource (/Users/xxx/node_modules/ejs/lib/ejs.js:493:15) at Object.Template.compile (/Users/xxx/node_modules/ejs/lib/ejs.js:416:12) at Object.compile (/Users/xxx/node_modules/ejs/lib/ejs.js:288:16) at handleCache (/Users/xxx/node_modules/ejs/lib/ejs.js:147:16) at View.exports.renderFile as engine The same code, work well in [email protected], but failure in [email protected] | v2.3.1 |- Jakefile |- README.md |- ejs.js |- ejs.min.js |- lib |- package.json test
| v1.0.0 |- History.md |- Readme.md |- ejs.js |- examples |- lib |- support |- Makefile |- benchmark.js |- ejs.min.js |- index.js |- package.json |- test
We're going to need a little more information before we can help you with this. This doesn't show how you're using the EJS API.