11-14-2023 03:27 AM
Hi,
I am trying this example:
it is working running on my latpop, andnow I would like to host bundle.js online. When I try to load the widget it doesn't work, and I can see in the browser console:
Solved! Go to Solution.
11-14-2023 08:14 AM
Hi @vvazquez ,
This is potentially a hosting problem or an issue in the layout configuration.
For example have hosted these samples for free on the cloud for internal demos and it works well, I will ping you the details 1:1 so you can reuse it.
Thanks & Regards,
Arunabh.
11-14-2023 08:28 AM
As discussed 1:1 the issue is the Desktop needs the widget hosted on a CDN or file storage, and not a indirect link like the github repo link to the file.
So the solution is to host the bundle.js on a cloud storage of some sort, e.g S3, GCP Cloud storage, onRender, or similar
When checking the "script" tag the layout engine has to render the raw, compiled, JS code as a web component.
Thanks & Regards,
Arunabh.
11-14-2023 08:28 AM
As discussed 1:1 the issue is the Desktop needs the widget hosted on a CDN or file storage, and not a indirect link like the github repo link to the file.
So the solution is to host the bundle.js on a cloud storage of some sort, e.g S3, GCP Cloud storage, onRender, or similar
When checking the "script" tag the layout engine has to render the raw, compiled, JS code as a web component.
Thanks & Regards,
Arunabh.
11-14-2023 08:14 AM
Hi @vvazquez ,
This is potentially a hosting problem or an issue in the layout configuration.
For example have hosted these samples for free on the cloud for internal demos and it works well, I will ping you the details 1:1 so you can reuse it.
Thanks & Regards,
Arunabh.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide