# Couldnt Find Target Container

**URL:** <https://community.hubspot.com/t/couldnt-find-target-container/31060>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [February 1, 2021, 1:40pm UTC](https://community.hubspot.com/t/couldnt-find-target-container/31060 "2021-02-01T13:40:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RHassan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rhassan/32/29892_2.png) [@RHassan](https://community.hubspot.com/u/RHassan)\
**Post date:** [February 1, 2021, 1:40pm UTC](https://community.hubspot.com/t/couldnt-find-target-container/31060/1 "2021-02-01T13:40:05Z")

</div>

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](https://share.hsforms.com/18oE-EObYTs6g4WaZF47KaQ529gq)

best

Raza

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 1, 2021, 9:17pm UTC](https://community.hubspot.com/t/couldnt-find-target-container/31060/2 "2021-02-01T21:17:17Z")

</div>

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](https://community.hubspot.com/t5/APIs-Integrations/Couldn-t-find-target-container-hbspt-form-XXXX-for-HubSpot-Form/m-p/228352/highlight/true#M7248)

2. Rendering issue on external, non HubSpot page. Solution [here](https://knowledge.hubspot.com/forms/form-in-the-wrong-place-on-external-page)

---

<div class="post-metadata">

**Author:** ![RHassan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rhassan/32/29892_2.png) [@RHassan](https://community.hubspot.com/u/RHassan)\
**Post date:** [February 3, 2021, 11:52pm UTC](https://community.hubspot.com/t/couldnt-find-target-container/31060/3 "2021-02-03T23:52:29Z")

</div>

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
