# Error While Deploying App | Dynatrace App Developer

**URL:** <https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, intents, strato, custom-app, app-functions\
**Created:** [February 13, 2025, 11:19am UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248 "2025-02-13T11:19:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [February 13, 2025, 11:19am UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248/1 "2025-02-13T11:19:40Z")

</div>

Hello, community members!

I was testing an app, and it worked fine. However, when I attempted to deploy it, the build was successful, but the deployment failed.

Here’s the exact error I encountered:

 ![zaidbashir_0-1739445458389.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/6/36473141c56b9279d5c4b6a1b31adad140c06354.png)

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [February 13, 2025, 1:38pm UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248/2 "2025-02-13T13:38:21Z")

</div>

Hi Zeid,

Usually, Dynatrace dependencies that use SDK clients, for example:&nbsp;`@dynatrace-sdk/react-hooks`&nbsp;have a dependency range in place. For example,&nbsp;`"@dynatrace-sdk/client-davis-analyzers": ">=1.8.0"`, which accepts everything above and equal to&nbsp;`1.8.0`.  
If you update or add a library that contains for example,&nbsp;`>=1.8.0`&nbsp;version&nbsp;of a client, it will lead to adding the latest available version of the SDK client if you don’t have the SDK client in the required version already in your&nbsp;`package.json`&nbsp;or&nbsp;`package-lock.json`. The latest SDK version might be incompatible with the cluster.

### How can you resolve the issue

There are some steps you can do:

1. **Check which libraries are using the client**  
Simply run&nbsp;`npm list @dynatrace-sdk/{your-incompatible-client}`&nbsp;and this will show you, where the client is used. Inside the&nbsp;`package.json`&nbsp;of the library that uses the client, you’ll find the dependency range (`@dynatrace-sdk/react-hooks`example:

2. **Check if it’s possible to downgrade the client.**  
If you have e.g.,&nbsp;`1.8.2`&nbsp;installed and the range says&nbsp;`>=1.8.0`, you could downgrade to&nbsp;`1.8.0`

3. **Check which SDK version relates to which service version**  
Within the&nbsp;[services.json](https://bitbucket.lab.dynatrace.org/projects/APPFW/repos/dynatrace-sdk/browse/services.json)&nbsp;file in the dynatrace-sdk repo, you can see which SDK version relates to which service version. The key in&nbsp;`supportedSdkVersions`&nbsp;is the service version and the&nbsp;`ts`&nbsp;array in it tells you which SDK client versions are compatible with it. If your client SDK version relates to a service version that is lower or equal than the deployed service version, you will not run into any problems.  
If you just want to see which service version your current installed SDK client relates to, you can simply go into your node\_modules folder and look at the&nbsp;`dynatrace-metadata.json`&nbsp;of the lib.

4. **Downgrade the client (if possible)**  
If you are able to downgrade your SDK client, you can simply call&nbsp;`npm i -E @dynatrace-sdk/{your-client}`&nbsp;(`-E`&nbsp;to save the exact version, without&nbsp;`^`&nbsp;beforehand). This will update your&nbsp;`package.json`&nbsp;and&nbsp;`package-lock.json`. The lock file is the important one. You don’t need to explicitly add the client to your&nbsp;`package.json`&nbsp;file but it would be a nice to have, to have a quick overview of which client is installed and a sub-depndency could not “easily” bump the client without your notice (you will probably not look in your lock file after updates).

Let me know if that works out for you and if you need any additional help.

Best,

Haris

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [February 15, 2025, 12:33pm UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248/3 "2025-02-15T12:33:44Z")

</div>

Thanks&nbsp;[@haris](https://community.dynatrace.com/user/57428)&nbsp;for the input.  
But in my case i was using node version 23 and AppToolkit uses Version 22 LTE. When I reverted back to version 22 LTE, the issue automatically fixed.

 ![Screenshot 2025-02-15 163404.PNG](https://global.discourse-cdn.com/dynatrace/original/2X/f/fa260e152de2e5aca82711534d6bc5a293e81ffc.png)

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [February 17, 2025, 8:45am UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248/4 "2025-02-17T08:45:29Z")

</div>

Hi Zaid,

I am happy to hear the issue has been resolved. For future reference, you can always check here which Node version is supported for latest toolkit:&nbsp;[First app in 5 minutes | Dynatrace Developer](https://developer.dynatrace.com/quickstart/first-app-in-5-minutes/#:~:text=The%20latest%20Node.js%20LTS%20version).

If you have any more questions, please let me know.

Best, Haris

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [February 18, 2025, 7:43pm UTC](https://community.dynatrace.com/t/error-while-deploying-app-dynatrace-app-developer/50248/5 "2025-02-18T19:43:39Z")

</div>

Funny solution - with-no-box&nbsp;:grin:😁😁😁

 ![MostafaHussein_0-1739907626646.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/6/36fe126c3d9416e7b3802d929304e73b9f18e59d.png)
