legalese / legalese.github.io

Static assets for legalese.com
https://legalese.com/
70 stars 27 forks source link

xmls of documents fail to appear when running Legalese tutorial #210

Closed chiahli closed 7 years ago

chiahli commented 7 years ago

Error message: TypeError: Expected argument of type object, but instead had type undefined.

wtf commented 7 years ago

This error occurs while evaluating the Series Seed template, exactly at the line https://github.com/legalese/legalese.github.io/blob/master/templates/seriesseed.com/seriesseed_investment_agreement_sg.xml#L93, because data.parties.key_holder in https://github.com/legalese/legalese.github.io/blob/master/templates/seriesseed.com/seriesseed_investment_agreement_sg.xml#L90 is undefined.

Upon fixing this error, another error occurs: the variables f_commencement, f_unrestricted_current, ... acceleration at https://github.com/legalese/legalese.github.io/blob/master/templates/seriesseed.com/seriesseed_investment_agreement_sg.xml#L108-L113 are all undefined.

The PDFs can be successfully generated after these two errors are fixed.