Component using resource file cannot be shared between apps

Hi,
I’m running into an issue when trying to share a custom component between apps.

The component uses a resource file (an image). When I attempt to share it, I get a warning saying the component uses app-specific data bindings. As far as I can tell, this isn’t correct - if I temporarily remove the image binding, the warning disappears.

In addition, sharing doesn’t seem to work at all as long as a resource file is in use: even with “Generate component params” enabled, clicking “Share” only closes the dialog and nothing happens (no shared component is created).

Removing the image data binding, sharing the component between apps, and then linking the resource file again works fine.

Hi Joanna,

I am not able to reproduce the case you are explaining.

My setup is as follows: I have a container called “Background = Resource file” inside a container.

As the name states, the “Background = Resource file” uses a resource file as the background (seen in the image below).

Additionally, I have added a Button to see if it generates a shared component with component params. In my case it creates a shared component with component params as expected.

Let me know if your setup is different so that I can try to reproduce the case.

Regards :smiling_face:

// Ulrik

Seems like the issue has been resolved in the last version upgrade (I’m on 134 now, the issue occurred on 133). I’ll let you know in case it happens again.

1 Like

Hey @ulrik,

I’ve run into the shared component creation issue again, this time on 135-0-18. It now seems unlikely that it’s related to resource files.

The behavior is the same: the share dialog appears, there’s a warning about generating component params (even though nothing in the component is app-specific), and when I click “Share” the dialog simply closes and nothing happens.

I’ve reproduced the issue in my sandbox solution as well. If anyone from the team would like to investigate, I’m happy to provide access.

Any updates on this one? Seems like in one of our customer solutions, it’s no longer possible to share components between apps.