trying to run 'npm test' command but getting a TypeError
What does the error say is happening?
TypeError: moment.tz.guest is not a function
What do you think the error means?
it does not recognize the call to the function
Command string
npm test
Code snippet
Error log
TypeError: moment.tz.guest is not a function
at file:///mnt/c/Users/jad23/workspace/a02-JadJ23/cli.js:15:28
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
Node.js version
16.17
Operating system
Linux jad23-pc 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 G
What is happening?
trying to run 'npm test' command but getting a TypeError
What does the error say is happening?
TypeError: moment.tz.guest is not a function
What do you think the error means?
it does not recognize the call to the function
Command string
npm test
Code snippet
Error log
TypeError: moment.tz.guest is not a function at file:///mnt/c/Users/jad23/workspace/a02-JadJ23/cli.js:15:28 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:533:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)
Node.js version
16.17
Operating system
Linux jad23-pc 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 G