missing dependency: uuid
See original GitHub issuethis 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,
- if I install devDependencies I have nyc, that depends on uuid, and the test will pass
- 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:
- Created a year ago
- Reactions:26
- Comments:18 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i have the same problem
This issue is already reported here: #355