# Invalid App Bundle: File ui/main.js.map too big

**URL:** <https://community.dynatrace.com/t/invalid-app-bundle-file-ui-main-js-map-too-big/37667>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, custom-app\
**Created:** [December 12, 2022, 7:30pm UTC](https://community.dynatrace.com/t/invalid-app-bundle-file-ui-main-js-map-too-big/37667 "2022-12-12T19:30:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [December 12, 2022, 7:30pm UTC](https://community.dynatrace.com/t/invalid-app-bundle-file-ui-main-js-map-too-big/37667/1 "2022-12-12T19:30:31Z")

</div>

When trying to deploy an application we’ve hit into the problem as in the title. See screenshot below:

 ![Radoslaw_Szulgo_4-1670873279632.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/9/c99c1429ada1416fd504a36f5c8a2a5ef35f029d.jpeg)

What are the limits for the file? Is there any other than “just” reducing its size?

 ![Screenshot 2022-12-12 at 20.29.10.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/0/809d0463cef827491c911d5ee805e43584de7595.jpeg)

---

<div class="post-metadata">

**Author:** ![michal\_zawislak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michal_zawislak/32/13613_2.png) [@michal\_zawislak](https://community.dynatrace.com/u/michal_zawislak)\
**Post date:** [December 13, 2022, 8:12am UTC](https://community.dynatrace.com/t/invalid-app-bundle-file-ui-main-js-map-too-big/37667/2 "2022-12-13T08:12:44Z")

</div>

Hi Radosław,

The current limit for a single uncompressed file is 20 megabytes.  
We hit a similar limitation recently and we decided to sacrifice source maps for being able to deploy an app.  
We did that by adding

```auto
build: { ui: { sourceMaps: false } }

```

to the _app.config.js_

 ![2022-12-13 09_09_14-● dtp.config.ts.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/7/c7190305cf18779b34857fa2de7a4df6ff780f13.png)

Here you can find out more about available build options: [https://developer.dynatrace.com/reference/app-toolkit/configuration/#build-options](https://developer.dynatrace.com/reference/app-toolkit/configuration/#build-options)
