question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing dependency: uuid

See original GitHub issue

this is the reference to the module: https://github.com/node-cron/node-cron/blob/master/src/scheduled-task.js#L6

I can not understand how a test can be real when devDependencies are required for running it. I mean,

  1. if I install devDependencies I have nyc, that depends on uuid, and the test will pass
  2. when I run it in real world, with a simple npm i, I have no devDependencies packages, so it really say that uuid is missing.

I have no idea how to post a failing test and a patch fixing it.

The required patch is to add uuid dependency in package.json

For now, my workaround is to add uuid as an explicit dependency in my project.

This is the output of the error after npm i and node index.js:


Error: Cannot find module 'uuid'
Require stack:
- /home/node/code/node_modules/node-cron/src/scheduled-task.js
- /home/node/code/node_modules/node-cron/src/node-cron.js
- /home/node/code/models/cronschedule.js
- /home/node/code/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/home/node/code/node_modules/node-cron/src/scheduled-task.js:6:14)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/home/node/code/node_modules/node-cron/src/node-cron.js:3:23)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/node/code/node_modules/node-cron/src/scheduled-task.js',
    '/home/node/code/node_modules/node-cron/src/node-cron.js',
    '/home/node/code/models/cronschedule.js',
    '/home/node/code/index.js'
  ]
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:26
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
cadifilippocommented, Jun 15, 2022

i have the same problem

4reactions
Juneezeecommented, Jun 19, 2022

This issue is already reported here: #355

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with missing dependencies: uuid/v4 #76 - lula/ngx-soap
Hi I really would like to use this but as soon as I try to start it (after installing all necessary dependencies) I...
Read more >
[MCPE-131684] Missing dependencies ID with mcpack - Jira
json file, I have changed the UUID in the header and modules area, but for the dependencies area, the UUID and the version...
Read more >
Missing uuid dependencies behavior pack please help - Reddit
r/Minecraft - Missing uuid dependencies behavior pack please help :(. This thread is archived.
Read more >
Message shown for missing dependency exception in ... - Drupal
Problem/Motivation When user tries to reexport the updated entity, then sometimes if any of its dependency is missing from cache then it ...
Read more >
Is there any way to check missing dependencies of the ...
Hi rohandhondilalk, for this copy the UUID of particular process model in OBJECTS tab search text and then click submit button it displays...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found