node-cron
node-cron copied to clipboard
Build issue on tz-offset
Please update the Dependencies tz-offset module version from 0.0.1 to 0.0.2
ERROR in ./node_modules/node-cron/node_modules/tz-offset/src/tz-offset.js
Any updates regarding this issue
The dependecies are not included.
However workaround for this issue is to install tz-offset module externally using the command npm I tz-offset
The dependecies are not included. However workaround for this issue is to install tz-offset module externally using the command
npm I tz-offset
Unfortunately, this does not work for me because it searches for the module inside the node_modules of node-cron:
Module not found: Error: Can't resolve '../generated/offsets' in '[..]/node_modules/node-cron/node_modules/tz-offset/src'
Or am I missing something?
If you're using webpack you can fix this by adding .json
to resolve.extensions.
How to fix it if I use only nodejs to run background process (Azure web job) without webpack. Ok, the package doesnt work well, so, the best option is to change to lib, I move to cron https://www.npmjs.com/package/cron
{
"extensions": [".json"]
}
tsconfig.json