You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code tries to render a file that does not exist:
ejs.renderFile(__dirname+'/app/index.html.ejs')
...but you can't discern that from the resulting error message:
./node_modules/ejs/lib/ejs.js:213
var tmpl = data.toString().trim();
^
TypeError: Cannot call method 'toString' of undefined
at ./node_modules/ejs/lib/ejs.js:213:23
at fs.js:207:20
at Object.oncomplete (fs.js:107:15)
The problem lies in this library's code using data before it checks for err:
The following code tries to render a file that does not exist:
...but you can't discern that from the resulting error message:
The problem lies in this library's code using
data
before it checks forerr
:The text was updated successfully, but these errors were encountered: