Open chrisnicola opened 9 years ago
I'm guessing that it is interpreting this as a ES6 template string, so I will have to escape the $
as \$
. This is probably not be a bug.
Actually I would suggest this is a bug in that there is no line number reported. So the error is pretty confusing from that standpoint.
I'm trying to parse some of what were originally SLIM templates using webpack. I've created a pretty basic loader (code below) and it works for the most part but I'm getting some unusual errors being thrown. I'm also not getting line numbers from the errors, nor does the error look like something from the SLM library.
The Loader:
The error
The line that is causing it:
If I remove the
$
it works. This is an angular template so it is meant to return a currency value, hence the dollar sign.