Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lruMemoize not a function #82

Open
tnrich opened this issue Apr 19, 2017 · 1 comment
Open

lruMemoize not a function #82

tnrich opened this issue Apr 19, 2017 · 1 comment

Comments

@tnrich
Copy link

tnrich commented Apr 19, 2017

Hey there,
I'm getting this after having ran npm update

prepareRowData.js?2aff:34 Uncaught TypeError: lruMemoize is not a function

Here's how I'm using it:

var lruMemoize = require('lru-memoize')
function prepareRowData(sequenceData, bpsPerRow) {
    var sequenceLength = sequenceData.sequence.length;
   ...etc
    return rows;
}
module.exports = lruMemoize(5,undefined,true)(prepareRowData)

UPDATE: Reverting back to v1.0.1 fixed the problem.

@felixdulfer
Copy link

Ran into this issue as well. Try

var lruMemoize = require('lru-memoize').default

Or ES6:

import lruMemoize from 'lru-memoize'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants