I am trying to add custom elements to property panel of the camunda modeler, I have been following the approaches states in camunda docs and bpmn, but whenever i use services from bpmn-io/properties-panel or bpmn-js-properties-panel i keep getting the following error :
TypeError: Cannot read properties of undefined (reading ‘context’)
Sample error trace :
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘context’)
at q (hooks.module.js:1:1551)
at useService (index.esm.js:30:17)
at b.Spell [as constructor] (SpellProps.js:24:30)
at b.O [as render] (preact.module.js:1:1)
at L (preact.module.js:1:1)
at C (preact.module.js:1:1)
at L (preact.module.js:1:1)
at C (preact.module.js:1:1)
at j (preact.module.js:1:1)
at L (preact.module.js:1:1)
Also i made sure that i am using the latest version of the dependencies
@Niklas_Kiefer , @beatriz.mendes and other people from community, can someone help me here??