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
anonymous Error #245
Comments
I think I saw the error once, but was not able to reproduce. What seems very strange is that this indicates that the error happens when we call require("./errors") but this happens at the time you require docxtemplater, so it makes no sense to me as to why this error would appear only sometimes and not everytime. I will investigate a bit and tell you what I find out. Can you try catch the error and console.log(JSON.stringify(e)) it ? |
It seems that we do not create custom Errors correctly. I have asked this stackoverflow question to get advice : http://stackoverflow.com/questions/39183506/extending-error-gives-wrong-stack-trace-information |
👍 great thanks. Keep me posted. Again, great job! Update:
|
Fixed and published in 2.1.5 on npm (you now will be getting a more detailled error message, not a generic message) |
hey! even after updating, this error still occurs e.g. if |
Is the error still anonymous? Can you share the new stacktrace ? |
It is expected to throw an error when the template has issues (like an unclosed tag) and the error contains additional information about the error (you can console.log(JSON.stringify(e)) to see the properties of the error, which you can use to show then to your end users. |
yep still an anonymous error with the same stack trace |
On what engine are your running docxtemplater ? nodejs ? chrome ? firefox ? which versions ? I just tested on chrome and firefox, and all errors that I can create with docxtemplater are not anonymous. Are you 100% sure that you correctly updated ? |
|
It should be 2.1.5 |
Hey!
First of all, great job. I really love this lib!
Now, when using a bit more sophisticated template I receive the following error message:
However, same works with a
template. Could there be settings or style which may be a problem to the docxtemplater parser?
The text was updated successfully, but these errors were encountered: