-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parseTags does not show any errors #90
Comments
Some more context upon further investigation:
|
Hi, thank you for reporting this. I've looked at this issue in the past and unfortunately it's not trivial to throw such errors from the TagParser code. However, the solution I'm currently using in my apps is going over the output of Having said that, the |
I am using the
parseTags
method to extract all the tags and get any meaningful errors if there are any issues in the template file. However it seems to simply swallow any errors and not expose them.I have a codesandbox link here that I have forked from the live demo: https://codesandbox.io/s/easy-template-x-demo-forked-9bxcox?file=/index.ts
The
Get Tags
button is what loads all the tags. The content of the docx file I'm using is as follows:I expect it to throw the
MissingStartDelimiterError
foraddress}
andMissingCloseDelimiterError
for{phone_no
However it simple parses the
name
tag and returns that.The text was updated successfully, but these errors were encountered: