Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
14 stars 24 forks source link

Custom component not working in v4 #2027

Open SimenRokaas opened 1 month ago

SimenRokaas commented 1 month ago

Description of the bug

Custom component (address search) worked in v3, does not work anymore in v4. We did not change anything.

Example of working v3 form: https://altinn.studio/repos/dsb/siv-1002-personopplysninger/src/branch/master/App/ui/layouts/02PersonalInformation.json#L303

Example of non-working v4 form: https://altinn.studio/repos/dsb/int-1017-personopplysninger/src/branch/master/App/ui/form/layouts/02PersonalInformation.json#L302 (commented out)

Steps To Reproduce

  1. Clone app int-1017-personopplysninger
  2. Remove / / around custom component so it gets included (see last description link)
  3. Start form, go to page 2
  4. Page fails with reference to custom component rendering

Additional Information

No response