node-cron icon indicating copy to clipboard operation
node-cron copied to clipboard

Build issue on tz-offset

Open tanmoyroy99 opened this issue 5 years ago • 6 comments

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

tanmoyroy99 avatar Aug 27 '19 11:08 tanmoyroy99

Any updates regarding this issue

sherry9872 avatar Oct 21 '19 07:10 sherry9872

The dependecies are not included. However workaround for this issue is to install tz-offset module externally using the command npm I tz-offset

Oliverq755 avatar Apr 16 '20 06:04 Oliverq755

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?

phartenfeller avatar Apr 16 '20 10:04 phartenfeller

If you're using webpack you can fix this by adding .json to resolve.extensions.

alex-at-work avatar May 14 '20 08:05 alex-at-work

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

makitocode avatar May 22 '20 22:05 makitocode

{
  "extensions": [".json"]
}

tsconfig.json

danielehrhardt avatar Oct 20 '20 20:10 danielehrhardt