I recently updated my project which uses vue-docgen-api which has a dependency of lru-cache. Upon execution I receive the following error from Node (v12.19.0)
node_modules/vue-docgen-api/node_modules/lru-cache/dist/cjs/index.js:359
#initializeTTLTracking() {
^
SyntaxError: Unexpected token '('
at wrapSafe (internal/modules/cjs/loader.js:931:16)
at Module._compile (internal/modules/cjs/loader.js:979:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (node_modules/vue-docgen-api/node_modules/lru-cache/dist/cjs/index-cjs.js:5:36)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
My use case is that I am trying to build a java-doc type file for my Vue project, which uses vue-docgen-api to generate the output. vue-docgen-api relies on lru-cache.
I recently updated my project which uses vue-docgen-api which has a dependency of lru-cache. Upon execution I receive the following error from Node (v12.19.0)
My use case is that I am trying to build a java-doc type file for my Vue project, which uses vue-docgen-api to generate the output. vue-docgen-api relies on lru-cache.
Please advise, thanks!