question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use $ as an attribute name

See original GitHub issue

I sometimes prefix my attributes with $, as $amount. Then, when using it on my templates, I get the following error:

emblem/parser.js:7689
      throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos);
      ^
SyntaxError: Expected _4BeginStatement or end of input but "\uEFEF" found.

Example code:

div= transaction.$amount

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kketchcommented, Oct 14, 2016

@tmosmant I’ll look soon for a fix, it looks like a parser bug

0reactions
thec0kemancommented, Oct 14, 2016

I’m not 100% sure, but I suspect this may be a good place to start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute name not allowed on element div at this point
I found some entry from: Markup Validation Error: "Attribute name not allowed on element at this point" error #HTML5.
Read more >
Attribute '<attributename>' cannot be applied multiple times
The attribute can only be applied once. The AttributeUsage attribute determines whether an attribute can be applied more than once. Error ID: ...
Read more >
How to Access an Object Attribute Given the Attribute Name as ...
You first create a Gun class object. Second, you get its caliber and color. Since your object does not have an attribute called...
Read more >
lightning aura components - cant set attribute of type object
This is because you have declared, beerList in Aura as Object . If you are passing List from backend then declare that as...
Read more >
Expression attribute names in DynamoDB - AWS Documentation
An expression attribute name is a placeholder that you use in an Amazon DynamoDB expression as an alternative to an actual attribute name....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found