formio custom components in user tasks

Hi all,
me and my team are using Formio to render complex forms in user tasks using the StephenOTT plugin. We developed our custom components for Formio: they work well and are rendered correctly in two other apps. We want to add them to the form renderer but we’re having issues: the Formio.render always prints the error shown below.

We tried to add our library to edit the config.js in the following way:

export default {
  customScripts: [
    'custom/logout',
    'custom/loadReact',
    'custom/formio-components'
  ],
  requireJsConfig: {
    ngDeps: [],
    deps: ['loadformio', 'loadFormio', 'heartbeat', 'formioComponents'],
    paths: {
        'loadFormio': 'scripts/loadFormio', // loadFormio serve per caformioComponentsricare l'editor del form
        'loadformio': 'scripts/formio.full.min',
        'formioComponents': 'custom/formio-components',
        'heartbeat': 'custom/heartbeat'
    }
  }
};

After that we added the component to Formio with Formio.Components.addComponent('advancedHidden', AdvancedHiddenComponent); as we’ve done in the other apps we mentioned and, following that, the components show up in the list of the available components. We tried with the Formio.use also but it didn’t work either.

Could You please help us understanding what’s wrong?

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.