json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

sfField decorator issue in Safari #915

Open tadam313 opened 7 years ago

tadam313 commented 7 years ago

Hello guys,

I'd like to ask for your help as we have run out of ideas investigating an issue related to sfField decorator, the error message is:

undefined is not an object (evaluating 'sfSchema.lookup["f"+attrs.sfField]') - so the lookup object is somehow undefined.

This is only happening in Safari desktop versions (no specific versions, happened in 9. and 10. as well). I've tried to backtrace the source of the error and it seems that the lookup is initialised insfSchema but we really don't know how could it end up as undefined.

We are using 0.8.12 version and not doing any weird stuff, only defining decorators for our custom types using the default builders (like it mentioned in the docs) and we also not using array types.

Unfortunately we can not reproduce it at all locally but it happens occasionally in our production environment, so we must find the root-cause. This post is really just asking for help, hoping someone already encountered this and know the fix.

Thanks for any help!

Anthropic commented 7 years ago

Hi @tadam313 that's a tricky one without a method to reproduce it is always harder to assist.

From memory similar issues were related to field name conflicts or poorly handled special characters, but you'd expect that to happen more often and be reproducible. Have you had any further insights since last week when I was on holiday?