# Local-development document (Javascript example)

**URL:** <https://community.pinecone.io/t/local-development-document-javascript-example/7228>\
**Category:** General\
**Created:** [December 25, 2024, 7:52am UTC](https://community.pinecone.io/t/local-development-document-javascript-example/7228 "2024-12-25T07:52:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyson.yamashita](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/dyson.yamashita/32/3687_2.png) [@dyson.yamashita](https://community.pinecone.io/u/dyson.yamashita)\
**Post date:** [December 25, 2024, 7:52am UTC](https://community.pinecone.io/t/local-development-document-javascript-example/7228/1 "2024-12-25T07:52:16Z")

</div>

Hello.  
Thank you for your great service.

I found a code error in the following document.  
I can’t create a ticket because I’m on the free plan, so I’ll contact you via the community.

Document:

> **[Local development with Pinecone Local - Pinecone Docs](https://docs.pinecone.io/guides/operations/local-development#2-develop-your-app)**
>
> Search through billions of items for similar matches to any object, in milliseconds. It's the next generation of search, an API call away.

Target: Example(Javascript)

The following is incorrect, and indexHost will be undefined, causing an error.

```auto
// Get the index host
const indexHost = await pc.describeIndex(indexName).host;

```

The following needs to be corrected.

```auto
// Get the index host
const indexHost = (await pc.describeIndex(indexName)).host;

```

---

<div class="post-metadata">

**Author:** ![jesse](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jesse/32/1658_2.png) [@jesse](https://community.pinecone.io/u/jesse)\
**Post date:** [January 6, 2025, 7:03pm UTC](https://community.pinecone.io/t/local-development-document-javascript-example/7228/2 "2025-01-06T19:03:25Z")

</div>

Hi @dyson.yamashitafor! Welcome to the Pinecone community forum, and thanks very much for reporting this documentation bug. It should be fixed now.

Best wishes,  
Jesse
