Hello n8n community,
I am having an issue with displaying n8n workflows using the ‘’ component described here:
I have included the ‘’ web component in a HTML file and set the ‘workflow’ attribute to the JSON representation of my workflow. However, for most workflows it displays the error message “Could not load workflow preview. You can still view the code and paste it into n8n”.
Based on my testing, it appears there is an issue related to the use of variables. When I remove the variables from the JSON, the workflow is displayed correctly. However, all workflows displayed in the forum appear without any issues and it looks like the same scripts are used here.
You can test the described issue using CodePen and remove the value ={{ $(‘Edit Fields’).item.json.q }} here: https://codepen.io/denobeno/pen/bNbBeeL
This is the workflow used in Codepen
Thanks in advance for your help!