# Help fix :Your webserver does not serve \`.mjs\` files using the JavaScript MIME type."

**URL:** <https://help.nextcloud.com/t/help-fix-your-webserver-does-not-serve-mjs-files-using-the-javascript-mime-type/190476>\
**Category:** ℹ️ Support\
**Tags:** update\_problems, nc28, truenas\
**Created:** [May 4, 2024, 9:19pm UTC](https://help.nextcloud.com/t/help-fix-your-webserver-does-not-serve-mjs-files-using-the-javascript-mime-type/190476 "2024-05-04T21:19:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![donchev](https://help.nextcloud.com/letter_avatar/donchev/32/6_22734026db12803ebb3e059622ac3534.png) [@donchev](https://help.nextcloud.com/u/donchev)\
**Post date:** [August 1, 2024, 8:51am UTC](https://help.nextcloud.com/t/help-fix-your-webserver-does-not-serve-mjs-files-using-the-javascript-mime-type/190476/3 "2024-08-01T08:51:35Z")

</div>

In addition to extending the mime.types nginx config explained above, you’d need to also touch the nginx.conf file config for serving static files - add `mjs` to the list similarly to the snippet:

```auto
# Serve static files
    location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
        try_files $uri /index.php$request_uri;

```

---

_[View the full topic](https://help.nextcloud.com/t/help-fix-your-webserver-does-not-serve-mjs-files-using-the-javascript-mime-type/190476)._
