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
When I run this, the result is "TypeError: fs.readFileSync is not a function". Looking at ejs.js in the latest release, I see no definition of this function anywhere, although it's called multiple times from the code. Is something broken?
The text was updated successfully, but these errors were encountered:
You should not be calling renderFile in a browser. The filesystem is not accessible in the browser. You should be using the Browserified ejs.js or ejs.min.js provided in a release (https://github.com/mde/ejs/releases/latest), and calling ejs.render.
I'm trying to run EJS strictly in a browser, no Node.js. Here's my code:
When I run this, the result is "TypeError: fs.readFileSync is not a function". Looking at ejs.js in the latest release, I see no definition of this function anywhere, although it's called multiple times from the code. Is something broken?
The text was updated successfully, but these errors were encountered: