You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError Plugin: netlify-cli: memoizeOne is not a function #2202
netlify dev
TypeError Plugin: netlify-cli: memoizeOne is not a function
module: @oclif/[email protected]
task: runHook init
plugin: netlify-cli
root: /home/vagrant/.nvm/versions/node/v10.21.0/lib/node_modules/netlify-cli
See more details with DEBUG=*
TypeError: memoizeOne is not a function
Additional context
Output above is from my system, but this is breaking on our build in Circleci, so I don't think it's just my system.
Reacted by Justin Boyson, Liam, Tuomas Rinta, Jon Eckstein, Benjamin Yee, Lesmiscore and Marcel Gerber
Seeing the same issue. The NPM package for memoize-one was updated 2 hours ago, and our issues started at the same time, so that seems to be a likely culprit that the NPM package contains the export change and the function isn't being imported correctly.
To add to that - we are unable to deploy our Netlify site right now which is kinda of a... problem.
drag and drop. This is the worst deployment method since it is dependent on a very solid network connection, your computer having a ton of free memory, and is still prone to failure for larger sites, but if you have a small one, it might work well. In this case "failure" will look like a stuck deploy, not a partial publish or anything. More details in this forums post.
Updated fool's earlier comment too, but we have released a new version of CLI 3.21.6 which fixes this issue. Please run npm i -g netlify-cli to get the latest version of CLI.
Sorry for the inconvenience, and thank you all for reporting this!
Also special thanks to @jsutaria for opening up a PR for the fix, we didn't end up using that PR but contribution was very much appreciated!
EDIT: It turns out that yarn global add netlify-cli resolves dependencies differently, and apparently it resolves to the wrong version of memoize-one (or, probably, disregards the package-lock.json entirely).
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- ntl
- netlify
Done in 35.01s.
[...]
TypeError: memoizeOne is not a function
Hey @marcelgerber (and others who may still be following this thread). We've released version 3.21.7 and more recently 3.21.8 which should have fixed the issue - alexreardon/memoize-one#116 - permanently both at the cli level and at @netlify/build. Do let us know if you're still running into some issues though 👍
Activity
shukryzablah commentedon Apr 22, 2021
Our circleci ran into the same error. Tried downgrading to 3.21.0, that didn't help. (We use the circleci/node:12 image)
unclejustin commentedon Apr 22, 2021
Came here to post the same error :( downgrading as far as 3.18.0 didn't help
unclejustin commentedon Apr 22, 2021
Wonder if this is related: alexreardon/memoize-one#37
trinta commentedon Apr 22, 2021
Seeing the same issue. The NPM package for memoize-one was updated 2 hours ago, and our issues started at the same time, so that seems to be a likely culprit that the NPM package contains the export change and the function isn't being imported correctly.
To add to that - we are unable to deploy our Netlify site right now which is kinda of a... problem.
liam-careerhub commentedon Apr 22, 2021
Same issue here; tried downgrading as far as 3.1.1 and no improvement. Doing a manual deployment via the Netlify UI for now.
alucardu commentedon Apr 23, 2021
Same issue here.
nolessafool commentedon Apr 23, 2021
💡 update: we have released a new version 3.21.6, which fixes this issue. please run
npm i -g netlify-clito get the latest version of CLI.Hey folks - while our team looks into this, be aware that we may not get a fix today (we definitely will, tomorrow).
However, to unblock you, there are other methods of deployment which will not suffer this problem:
keiko713 commentedon Apr 23, 2021
Oops sorry, closing the PR looks like closed this issue! A new (fixed) version is not released yet, but will be shortly! We'll keep you posted.
keiko713 commentedon Apr 23, 2021
Updated fool's earlier comment too, but we have released a new version of CLI 3.21.6 which fixes this issue. Please run
npm i -g netlify-clito get the latest version of CLI.Sorry for the inconvenience, and thank you all for reporting this!
Also special thanks to @jsutaria for opening up a PR for the fix, we didn't end up using that PR but contribution was very much appreciated!
marcelgerber commentedon Apr 23, 2021
We are still running into this issue for our Github Actions-based deploy (using https://github.com/netlify/actions/tree/master/cli), even though it is already using version 3.21.6 of
netlify-cli.EDIT: It turns out that
yarn global add netlify-cliresolves dependencies differently, and apparently it resolves to the wrong version ofmemoize-one(or, probably, disregards thepackage-lock.jsonentirely).You can see the full run here: https://github.com/owid/covid-19-data/runs/2418123449#step:4:8
JGAntunes commentedon Apr 23, 2021
Hey @marcelgerber (and others who may still be following this thread). We've released version
3.21.7and more recently3.21.8which should have fixed the issue - alexreardon/memoize-one#116 - permanently both at theclilevel and at@netlify/build. Do let us know if you're still running into some issues though 👍