# Sharing files among different folders in kibana 7.10.2

**URL:** <https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813>\
**Category:** Kibana\
**Created:** [May 24, 2021, 11:01am UTC](https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813 "2021-05-24T11:01:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_yadav2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_yadav2/32/61530_2.png) [@ravi\_yadav2](https://discuss.elastic.co/u/ravi_yadav2)\
**Post date:** [May 24, 2021, 11:01am UTC](https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813/1 "2021-05-24T11:01:49Z")

</div>

Hi Team,  
I had created a new file inside src\core\server\core\_app\refresh\_service.ts  
and trying to access it at src\plugins\data\public\ui\search\_bar\search\_bar.tsx

I am getting linting errors, even I am not able to build it.

Error :  
Module not found: Error: Can't resolve 'src/core/server/core\_app/refresh\_service' in 'D:\kibana\_discussion\kibana\src\plugins\data\public\ui\search\_bar'

How I can share files between different folders in kibana

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7cf50f49d89d80e1821744223c32fc5613fd7744.png)

Basically, i want to share data between core and plugin folder by a service.  
.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [May 25, 2021, 2:56pm UTC](https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813/2 "2021-05-25T14:56:30Z")

</div>

You need to use the relative notation for anything but types: `../../../../../core/(and so on)`

Something else I noticed: You try to import server code on the client (server vs public) - this normally doesn't make sense. If your logic is intended to be used both on the server and the client, move them to a `common` folder outside of `public` and `server`, then import from there from both places, otherwise just move them to either public or server depending on where it's going to be used

---

<div class="post-metadata">

**Author:** ![ravi\_yadav2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_yadav2/32/61530_2.png) [@ravi\_yadav2](https://discuss.elastic.co/u/ravi_yadav2)\
**Post date:** [May 26, 2021, 9:36am UTC](https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813/3 "2021-05-26T09:36:27Z")

</div>

Thanks, @flash1293  
Yes, it should be a relative path.

---

<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 23, 2021, 9:36am UTC](https://discuss.elastic.co/t/sharing-files-among-different-folders-in-kibana-7-10-2/273813/4 "2021-06-23T09:36:32Z")

</div>

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