반응형
SyntaxError: Unexpected identifier in index.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJS-Lint Or, if you meant to create an async function, pass `async: true` as an option. at new Function ()
원인은 include 하는 기존 방식이 제거돼서 에러가 발생했던 것이었다.
<% include ./header %>와 같이 돼있던 부분을 <%- include('header') %>와 같이 수정하면 된다.
728x90
'Solve to troubleshoot' 카테고리의 다른 글
Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN (0) | 2020.09.01 |
---|---|
file "manage.py" ) from exc SyntaxError: invalid syntax (0) | 2020.06.02 |
PHP Undefined index: (0) | 2020.05.19 |
count(): Parameter must be an array or an object that implements Countable (0) | 2020.05.18 |
phpmyadmin 초기 설치시 에러 (0) | 2020.03.31 |