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.

Error interpolating variables inside headings

See original GitHub issue

Hey, first of all thanks for creating this awesome plugin! 😃

Description

When adding a variable at data object param (in sendTemplatedEmail), and used in the template inside a heading tag, lodash throws a ReferenceError. I think this is happening because the htmlToText function parses headings to uppercase, creating a mismatch when interpolating.

For example, using a variable total inside the data param:

At the template At the parsed bodyText
shot_210610_182016 shot_210610_173236

error

Opened a possible solution at #37

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alexzaganellicommented, Jun 10, 2021

Thank you for have found the bug and provided the fix @GuilleAngulo !! LGTM, I really appreciate

0reactions
GuilleAngulocommented, Jun 10, 2021

Yay! happy it was useful!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my function using string interpolation give me two ...
Solved. I was overwriting the total() function with its returned value in the second example which allowed me to get the right answer...
Read more >
Errors when computing the interpolation function - COMSOL
Since the error message says the software is unable to evaluate a VARIABLE, it looks like the problem is that you may not...
Read more >
GraphQL Schema Auto Fetch does not interpolate variables.
When using a variable such as {{host}} as the URL for the GraphQL endpoint the request to auto fetch fails. In the console...
Read more >
SASS: interpolation in a name of variable - Krasimir Tsonev
The problem​​ The idea is to use a variable and construct another thing. However it is currently not possible to use interpolation in...
Read more >
Template literals (Template strings) - JavaScript | MDN
However, invalid escape sequences will cause a syntax error, unless a tag function is used. expression. An expression to be inserted in the ......
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