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

Custom components not working with native federation #15

Open
maiksfd opened this issue Oct 21, 2024 · 0 comments
Open

Custom components not working with native federation #15

maiksfd opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maiksfd
Copy link

maiksfd commented Oct 21, 2024

Describe the Bug

I successfully integrated the form editor with the custom range component in my angular application. The goal is to use this application as a microfrontend. The problem is, as soon as i add native federation (https://www.npmjs.com/package/@angular-architects/native-federation), the custom component (and the whole editor) is not working anymore.

Steps to Reproduce

  1. Clone the repo: https://github.com/maiksfd/angular-form-js-test
  2. Start both apps
  3. Drag the custom range component into the editor

Expected Behavior

The custom component should also render in the application with native federation.

Actual Behavior

When dragging the custom component into the edior, the following error is displayed:
ERROR TypeError: r2 is undefined

After the error the whole editor stops working (not able to drag any components into the editor).

Screenshots

grafik

Additional Information

bpmn-io/form-js: 1.10.1

As far as i know, native federation uses esbuild under the hood, so it should not make any difference (esbuild is used in the application without native federation too and it works there).

Any help is appreciated :)

@maiksfd maiksfd added the bug Something isn't working label Oct 21, 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
Projects
None yet
Development

No branches or pull requests

1 participant