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
I just updated to ember 3 and got the following error (everything else is working fine):
Uncaught Error: SYNTAX ERROR: #if requires a single argument
Considering the size of the codebase, I can't figure out where this error comes from (already looked at all #if so I suppose I missed one...) and didn't find out how or where it was generated in this repository so I can't send a PR either.
Could you add the full #if syntax please? It'd be really helpful...
The text was updated successfully, but these errors were encountered:
Thanks for reporting! We definitely consider bad error messages like this to be bugs.
The error is being thrown here. Sadly, by that point in the process we have lost the original syntax and source locations.
I'd propose making an "invalid-syntax-detection" AST transform that we can use to move this specific error (and perhaps any other statically detectable errors that are being thrown in the opcode compiler) so that it can include the template path, line number, and column.
What I had in mind was way simpler but this new solution might be more helpful (I just wanted to print the arguments...). I don't have enough time to implement this myself for the moment but if it's still not fixed next time I pass by, I'll give it a look.
I just updated to ember 3 and got the following error (everything else is working fine):
Considering the size of the codebase, I can't figure out where this error comes from (already looked at all
#if
so I suppose I missed one...) and didn't find out how or where it was generated in this repository so I can't send a PR either.Could you add the full
#if
syntax please? It'd be really helpful...The text was updated successfully, but these errors were encountered: