Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Form Viewer code is missing type attribute on form. #1175

Open
temecom opened this issue May 6, 2024 · 0 comments
Open

Sample Form Viewer code is missing type attribute on form. #1175

temecom opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@temecom
Copy link

temecom commented May 6, 2024

Describe the Bug

When following the sample code at : https://github.com/bpmn-io/form-js/tree/develop/packages/form-js-viewer a runtime error is thrown: form field of type undefined not supported.

Steps to Reproduce

  1. When Following the instructions in the page above
  2. And Running the code
  3. Then Browser error is thrown

Expected Behavior

The form is rendered

Environment

OS: WSL on Windows 11
Node Version : 20
TypeScript (Angular)

Fix

The sample schema should include the 'default' type:
schema {
type: 'default',
components: [
{
key: 'creditor',
id: 'abcdef',
label: 'Creditor',
type: 'textfield',
validate: {
required: true,
},
},
],
};

@temecom temecom added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant