Skip to content

Custom component fails after upgrading @formio/react@6.x #626

Description

@adventmedia

Here is the initial code for the custom component under v5.x:

import { Formio } from '@formio/react';
const FieldComponent = Formio.Components.components.field;

After upgrading to 6.x, it fails with the console log:

Uncaught TypeError: Cannot read properties of undefined (reading 'Components') at SummaryInput.js:2:31

The IDE (Webstorm) also reports that it "cannot resolve symbol 'Formio'"

Where is the documentation that supports this? All documentation for custom components assumes vanilla JS, nothing about integration with React (or Angular, I suppose).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions