I had this error thrown by ejs which ejs-lint couldn't detect.
err SyntaxError: missing ) after argument list in C:\model.ts while compiling ejs
If the above error is not helpful, you may want to try EJS-Lint:
https://github.com/RyanZim/EJS-Lint
for a code like,
<%= ":" _ %>
First of all it should not throw an error as this code has both <% and %>. But this ejs detects this space (' ') between _ %> and throws an error.
It could be a meaning full error , may be like , its missing a closing '%>' - would be more appropriate.
But it was very hard for me to locate this little space in the large file!