# HS Theme Preview - Global Module Issue

**URL:** <https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [August 10, 2024, 6:55am UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212 "2024-08-10T06:55:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dawidk](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dawidk](https://community.hubspot.com/u/Dawidk)\
**Post date:** [August 10, 2024, 6:55am UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/1 "2024-08-10T06:55:09Z")

</div>

I noticed an issue with the “hs theme preview”, when I up and run the example page which contains the global module (with modified settings in the global editor) - the data is missing - it looks like HS doesn’t fetch the data but instead serves the ones defined from the fileds.json file

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [August 10, 2024, 12:54pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/2 "2024-08-10T12:54:55Z")

</div>

Hi @Dawidk

Kindly try refreshing your browser’s cache or try from a private browsing window to access the preview.

This may help resolve the problem and provide a clearer view.

**Hope this helps - Happy to help further!!**  
**Thank you very much and have a great one!**  
**Warm regards**

---

<div class="post-metadata">

**Author:** ![Dawidk](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dawidk](https://community.hubspot.com/u/Dawidk)\
**Post date:** [August 10, 2024, 1:17pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/3 "2024-08-10T13:17:08Z")

</div>

doesn’t work - menu items are still unavailable on the local env

 ![Dawidk_0-1723295633673.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/e/8e291e31bbd37d68aa251dde0a6e492184b8337f.png)

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [August 10, 2024, 2:07pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/4 "2024-08-10T14:07:39Z")

</div>

@Dawidk

Thanks for confirming on that part, as a next step we must review environment variables, and local server configurations.

**Regards**

---

<div class="post-metadata">

**Author:** ![Dawidk](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dawidk](https://community.hubspot.com/u/Dawidk)\
**Post date:** [August 10, 2024, 3:59pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/5 "2024-08-10T15:59:41Z")

</div>

So the issue is on the HS side? And I should wait for the fix?

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [August 10, 2024, 4:43pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/6 "2024-08-10T16:43:15Z")

</div>

We need to continue exploring all possible avenues to pinpoint the root cause of the issue. If you’d like to take this to our support team, you’re more than welcome to do so

[Help Center (hubspot.com)](https://help.hubspot.com/?_ga=2.42980065.535679222.1723292907-2052178615.1723292907)

 ![Humashankar_0-1723308131853.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/1/010a33e46dc2e84906b01c4aaea59c7079d43ed9.png)

**Regards**

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 10, 2024, 8:26pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/7 "2024-08-10T20:26:24Z")

</div>

Hi @Dawidk,

you’re guessing right.  
The “hs theme preview” command creates only a local preview of the locally available theme elements like CSS, JS, JSON, modules and templates.

**It is not connected to HS in any way.**

Therefore - changes you apply to global modules inside your portal won’t be displayed in the theme preview.

Kinda odd, but the theme preview command was implemented to let a developer check for major issues before uploading it to a portal. Since even the default placeholding menu we all know (the one that gets displayed in a menu module until you select a real menu) is rendered by HubSpot - not a template or JSON file anyone outside of HubSpot can access. And this leads to the case that a menu is not being rendered in the hs theme preview.  
If you like to test the menu - I’d recommend to upload the theme to a test portal and test the “real case scenario” in this test portal. Once testing is done, move the files to the live portal.

best,

Anton

---

<div class="post-metadata">

**Author:** ![Dawidk](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dawidk](https://community.hubspot.com/u/Dawidk)\
**Post date:** [August 11, 2024, 3:49pm UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/8 "2024-08-11T15:49:33Z")

</div>

Hi Anton!

Let’s say I have classic modules (local and native - like RichText) that are on template X and based on it I have page Y. When I modify content on the page (page Y) the changes are visible when I preview the page in local mode.

 ![Dawidk_0-1723391195588.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/5/151728d290e2257dacaa55ffe6522f7797ad27a4.png)

So **since the data are not connected** **with HS (as you wrote)**, the data should not be visible as well but I can see the changes, that’s why I assumed that the lack of data on the global module is a bug

---

<div class="post-metadata">

**Author:** ![Dawidk](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dawidk](https://community.hubspot.com/u/Dawidk)\
**Post date:** [August 13, 2024, 8:10am UTC](https://community.hubspot.com/t/hs-theme-preview-global-module-issue/114212/9 "2024-08-13T08:10:01Z")

</div>

The most interesting thing is that when I use a global partial containing non-global modules (but HS treats them as global), everything works fine and I can see the updated data.
