Open madhur opened 1 year ago
?
Seems like v6.1.0 works
const CacheableLookup = require('cacheable-lookup');
We are using node v14 and this module doesn't seem to work with that version since we are using "require" statements instead of "import".
This is how I use it on node v14 with cjs:
// we have to dynamic import here as cacheable-lookup only supports ESM.
const { default: CacheableLookup } = await import('cacheable-lookup');
We are using node v14 and this module doesn't seem to work with that version since we are using "require" statements instead of "import".