Closed vacarsu closed 9 years ago
I wonder if you don't have strings in your address fields. What does your address code look like?
They are string, are they not supposed to be?
They should be strings. Try out the example code in the README or look at the unit test: https://github.com/enesser/vCards-js/blob/master/test/tests.js
I found the problem I was setting the city code to be a number instead of a string
Added code to convert other data types into a string in the encode method, because this sounds like a mistake that others will experience.
Thanks.
I get this error when using workAddress fields.