Syntax error: TypeError: _stack.slice(...)[0] is undefined
Hi There,
About one year ago, I created a Zotero citation style. Everything were working correctly until I updated the software. Since then, the style is not working anymore. When I look into the editor style, it is written:
TypeError: _stack.slice(...)[0] is undefined.
By any chance, do you have any idea of how to fix it?
Thank you in advance for your replies,
Nathan
About one year ago, I created a Zotero citation style. Everything were working correctly until I updated the software. Since then, the style is not working anymore. When I look into the editor style, it is written:
TypeError: _stack.slice(...)[0] is undefined.
By any chance, do you have any idea of how to fix it?
Thank you in advance for your replies,
Nathan
Warning: I'm not an expert in Zotero coding, it might hurt your eyes.
http://validator.citationstyles.org/?url=https://gist.githubusercontent.com/anonymous/12c3f2d9b36fbfdd8425f08d1dfc455f/raw/5d6df98fbadb1a25f414cd4d918b79fb85714f0c/Zotero%2520Style&version=1.0.1
While sometimes styles that don't validate may still work in Zotero (as this apparently did originally) there's no guarantee they'll keep working.
The first thing I'd try is to fix how you comment out code
// is for javascript and doesn't actually comment out anything in XML/CSL
You'd want to put comments between
<!-- Comment here -->