Couldnt Find Target Container

the issue is that the console shows an error "Couldn’t find target container #contactus for HubSpot Form f2813e10-e6d8-4ece-a0e1-6699178eca69. Not rendering form onto the page f @ shell.js:1 " and if I refresh the page it loads up fine but not on the first load.

the form is here, https://share.hsforms.com/18oE-EObYTs6g4WaZF47KaQ529gq

best

Raza

Hi @RHassan

Welcome to the Community!

Where are you experiencing this issue?

Two things come to mind without having more details

1. Trying to edit the embed code, but not on a subscription tier that allows it. Similar issue here

2. Rendering issue on external, non HubSpot page. Solution here

Hi @dennisedson ,

Thank you. I found a fix, I just pivoted to using the following package

import HubspotForm from ‘react-hubspot-form’

and just put the form id and portal id into it and it works great now.

Thank you

Raza