PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:07 PM

TypeError in exported web component

  • mossi

    20 days ago

    I'd appreciate any insights;
    I made a simple component in toddle that has a few divs and a couple of APIs. I used the export snippet to embed the component in my website. My website is a CMS based site (Joomla) with 3 themes/templates. The component works as expected only with of the themes and gives the following error when other themes are activated. Just to give more context, on the problematic themes, some elements still work and the issue is that only one of the divs in the component fails to render, and one of the apis fail to work. here is the error:
    TypeError: Cannot read properties of undefined (reading 'cleanup')
    at createNode.ts:296:18
    at Array.forEach (<anonymous>)
    at createNode.ts:294:43
    at Ct.subscribe (signal.ts:35:5)
    at v (createNode.ts:188:18)
    at _ (createNode.ts:340:12)
    at createElement.ts:191:26
    at Array.forEach (<anonymous>)
    at po (createElement.ts:190:19)
    at m (createNode.ts:40:11)
  • Jacob Kofoed

    20 days ago

    I can take a look. If it’s a public project you can just send me a link to the component.
  • mossi

    19 days ago

    Hey, sorry for late reply. Here is a replica of the component. If you need to get the APIs going let me know when we are both online and start the local host

    https://toddle.dev/projects/apricot_bail_prestor_organa_religious_sa_fish/branches/start/components/Widget?leftpanel=design&rightpanel=style&canvas-width=800&canvas-height=800
  • Thanks btw lol
  • mossi

    19 days ago

    sorry i meant if you need the apis runing to check the component let me know so I deploy backend temporarily

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.