Hi.
Thanks for parse-duration, I've been using it in loads of my libraries, however it's started failing under Node 14. I'm probably missing something obvious, getting the following error...
$ node --version
v14.2.0
$ node
Welcome to Node.js v14.2.0.
Type ".help" for more information.
> const parse = require('parse-duration');
Uncaught:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /Users/steve/Development/cressie176/pipsqueak/node_modules/parse-duration/package.json
at resolveExportsTarget (internal/modules/cjs/loader.js:596:11)
at applyExports (internal/modules/cjs/loader.js:454:14)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
at Function.Module._load (internal/modules/cjs/loader.js:890:27)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at repl:1:15
at Script.runInThisContext (vm.js:131:20) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Hi. Thanks for parse-duration, I've been using it in loads of my libraries, however it's started failing under Node 14. I'm probably missing something obvious, getting the following error...
Any ideas?