-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hello. I'm on Node 10.x on AWS lambda. How can Node versions 10 or less best utilize this package? The following seems to work for me, though it is an unusual method.
Worked
const { default: inMemoryCache } = require('@nrk/nodecache-as-promised');
const ciCache2 = inMemoryCache();Failed
SyntaxError: Unexpected identifier
import inMemoryCache from '@nrk/nodecache-as-promised';
const cache = inMemoryCache();inMemoryCache is not a function
const inMemoryCache = require('@nrk/nodecache-as-promised');
const ciCache2 = inMemoryCache();lacks a call or construct signature
const NCAP= require('@nrk/nodecache-as-promised');
const myCache = new NCAP();Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels