# In publishing, uuid module can't be found

**URL:** <https://community.homey.app/t/in-publishing-uuid-module-cant-be-found/137082>\
**Category:** Apps\
**Tags:** app\
**Created:** [May 25, 2025, 6:26pm UTC](https://community.homey.app/t/in-publishing-uuid-module-cant-be-found/137082 "2025-05-25T18:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_J](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dick_j/32/79161_2.png) [@Dick\_J](https://community.homey.app/u/Dick_J)\
**Post date:** [May 25, 2025, 6:26pm UTC](https://community.homey.app/t/in-publishing-uuid-module-cant-be-found/137082/1 "2025-05-25T18:26:26Z")

</div>

Hi all, I’m trying to create an app so I can import the energy generated from my solarpanels (APSystems). In developing with Visual Studio code, I can create API requests fine. But not when I publish a test version. This throws an error.  
The code with the UUID in it is:  
\> console.log(‘API request called’);

> ```
> const crypto = require("crypto");
> const axios = require("axios"); 
> const { v4: uuidv4 } = require("uuid");
> const nonce = uuidv4().replace(/-/g, "");
> const timestamp = Date.now().toString();
> const signature_method = 'HmacSHA256';
> const apiKey = api_Key;
> const apiSecret = String(api_Secret);
> 
> ```

But trying to add the device in the app, the following error appears:

 ![UUID_error](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/fe5ab1a078a9e9fb2316394841b72ccc6945fbed.png)

Did I do something wrong, or is the development environment different from the test environment?  
As you might have guessed, I’m not a professional developer, just having a hobby 😊

Regards, Dick

Edit: created a UUID from the timestamp. Works.
