# 'ElasticPressProvider' was not found in '@10up/elasticpress-react'

**URL:** <https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196>\
**Category:** Elasticsearch\
**Created:** [May 27, 2021, 11:29am UTC](https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196 "2021-05-27T11:29:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharmeela\_Jaimalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharmeela_jaimalani/32/77606_2.png) [@Sharmeela\_Jaimalani](https://discuss.elastic.co/u/Sharmeela_Jaimalani)\
**Post date:** [May 27, 2021, 11:29am UTC](https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196/1 "2021-05-27T11:29:47Z")

</div>

Hello,  
I have installed the elasticpress-react with following npm command in my gastby project - ([GitHub - 10up/elasticpress-react: Use ElasticPress with React.](https://github.com/10up/elasticpress-react))  
"npm install @10up/elasticpress-react --save"

After installation, I am including code in my search page as - \>

```
import {
	AutosuggestField,
	RelatedContent,
	SearchField,
	Posts,
	ElasticPressProvider,
	findResultsState,
} from '@10up/elasticpress-react'

<ElasticPressProvider
      node="http://elasticpress.test/__elasticsearch"
     indexName="elasticpresstest-post-1"
    loadInitialData={false}
>
     <AutosuggestField />
</ElasticPressProvider>

```

The error I found after compilation is as below -  
warn "export 'ElasticPressProvider' was not found in '@10up/elasticpress-react'."

The file [ElasticPressProvider.js] is not in the above npm command build and I am not able to proceed since I need that wrapper.  
The file is in elasticpress-react-develop\src\components\Provider\ElasticPressProvider.js location which is not bundled by "npm install @10up/elasticpress-react --save"

I have attached the screenshot of the content bundled by npm comment, Kindly let me know, how can I use this React+gastby code to work?  
 ![elasticpress](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c267e0bb587af7903a2f3bd1c31c0f53d59b412.png)

Regards,  
Sharmeela

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 27, 2021, 11:18pm UTC](https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196/2 "2021-05-27T23:18:21Z")

</div>

Welcome to our community! 😃  
Can you please edit your post and remove the formatting on your non-code text, it's very hard to read your post and provide assistance.

---

<div class="post-metadata">

**Author:** ![Sharmeela\_Jaimalani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharmeela_jaimalani/32/77606_2.png) [@Sharmeela\_Jaimalani](https://discuss.elastic.co/u/Sharmeela_Jaimalani)\
**Post date:** [May 28, 2021, 5:26am UTC](https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196/3 "2021-05-28T05:26:05Z")

</div>

Hi Mark,  
Please find updated question. Awaiting for your reply.

Regards,  
Sharmeela

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 25, 2021, 5:27am UTC](https://discuss.elastic.co/t/elasticpressprovider-was-not-found-in-10up-elasticpress-react/274196/4 "2021-06-25T05:27:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
