我有一个包含campgrounds.ejs、landing.ejs的views文件夹和一个partials文件夹。在partials文件夹中是我的header.ejs和footer.ejs文件。SyntaxError: Unexpected identifier in C:\Users\hawkm\Desktop\YelpCamp\views\Landing.ejs while compilingejs <% include p
问题: 我安装了Express,EJS,我的landing.ejs无法加载正确的超文本标记语言部分。它给了我以下错误。Screenshot of problem 我所做的: 我已经安装了EJS,Express。我的路由语法应该是正确的。我的页眉和页脚也很好。我在另一个项目中有相同的路径和语法,并且我的文件加载正常。app.js landing.ejs file
SyntaxError: Unexpected identifier in \path\views\landing.ejs while compiling ejshttps://github.com/RyanZim/EJS-Lint
Or, if you meant toat Object.compile (\path\node_modu