# CSS and js for cards are not being loaded in local development mode

**URL:** <https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410>\
**Category:** Themes\
**Created:** [December 18, 2021, 5:48am UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410 "2021-12-18T05:48:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBJsolution](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gbjsolution/32/4738_2.png) [@GBJsolution](https://forum.ghost.org/u/GBJsolution)\
**Post date:** [December 18, 2021, 5:48am UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/1 "2021-12-18T05:48:22Z")

</div>

Ghost version: 4.32.0  
Environment: development  
OS: Windows 10

As per the documentation ([Ghost Theme Features: The Editor - Documentation](https://ghost.org/docs/themes/content/#editor-cards)), default CSS and javascript for cards, ie. `cards.min.css` and `cards.min.js` should be output by `{{ghost_head}}` helper.

I have tested with multiple themes. Even Casper is not showing any card properly in the local development environment.

How can I solve this?

---

<div class="post-metadata">

**Author:** ![ahmadajmi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ahmadajmi/32/23173_2.png) [@ahmadajmi](https://forum.ghost.org/u/ahmadajmi)\
**Post date:** [December 19, 2021, 8:39am UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/2 "2021-12-19T08:39:26Z")

</div>

It works fine for me, and I don’t think it’s a theme-related issue. Probably you need to restart Ghost?

 ![](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/3/73293278b217fae341ae377d898df6628c32720c.png)

---

<div class="post-metadata">

**Author:** ![GBJsolution](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gbjsolution/32/4738_2.png) [@GBJsolution](https://forum.ghost.org/u/GBJsolution)\
**Post date:** [December 20, 2021, 3:22pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/3 "2021-12-20T15:22:53Z")

</div>

I have tested in localhost and it still does not work for me. Maybe this issue is occurring in Windows OS only.  
I have tested it on a server in production and it works. But not in localhost on Windows PC.

---

<div class="post-metadata">

**Author:** ![elpato](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@elpato](https://forum.ghost.org/u/elpato)\
**Post date:** [June 14, 2022, 4:32pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/4 "2022-06-14T16:32:32Z")

</div>

Running into this same issue. Did you ever figure out what the problem was? Restarting Ghost doesn’t fix it, and I’ve also installed Ghost in a new directory.

I’m also running in development mode on Windows.

---

<div class="post-metadata">

**Author:** ![TheRoyalFig](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/theroyalfig/32/27771_2.png) [@TheRoyalFig](https://forum.ghost.org/u/TheRoyalFig)\
**Post date:** [June 14, 2022, 5:32pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/5 "2022-06-14T17:32:19Z")

</div>

Are running in WSL? I’ve been running Ghost in dev mode and everything works as expected

---

<div class="post-metadata">

**Author:** ![elpato](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@elpato](https://forum.ghost.org/u/elpato)\
**Post date:** [June 15, 2022, 2:05am UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/6 "2022-06-15T02:05:53Z")

</div>

Nah, purely Windows 10. I’ll give WSL another go but last time I tried there was an issue with port forwarding so I couldn’t use a browser within Win10 to connect to Ghost running in WSL2. I decided to just do development in Win10 as well instead of trying to figure it out, I think it was a known and ongoing issue at the time.

---

<div class="post-metadata">

**Author:** ![elpato](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@elpato](https://forum.ghost.org/u/elpato)\
**Post date:** [June 15, 2022, 7:53pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/7 "2022-06-15T19:53:59Z")

</div>

Got Ghost set up in WSL, running in dev mode. Got the port forwarding issue figured out too.

Card assets are loading as expected, with absolutely zero changes to the theme and using the same version of ghost-cli and Ghost. Must be something about Ghost running on Windows 10.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [June 15, 2022, 8:12pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/8 "2022-06-15T20:12:43Z")

</div>

I _think_ there’s an issue filed for this - [Cannot generate assets (cards, admin-auth, etc) on local windows install · Issue #14278 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/issues/14278)

---

<div class="post-metadata">

**Author:** ![elpato](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@elpato](https://forum.ghost.org/u/elpato)\
**Post date:** [June 16, 2022, 12:59pm UTC](https://forum.ghost.org/t/css-and-js-for-cards-are-not-being-loaded-in-local-development-mode/27410/9 "2022-06-16T12:59:24Z")

</div>

Yeah that definitely sounds like what is going on. Should’ve searched better before posting here 😅
