tanishqmanuja / apkmirror-downloader

📥 Download apps from APKMirror with ease.
https://www.npmjs.com/package/apkmirror-downloader
MIT License
35 stars 8 forks source link

error: TypeError: f.findLast is not a function #14

Closed Yakov5776 closed 3 months ago

Yakov5776 commented 3 months ago
APKMirror Downloader v1.0.6
TypeError: f.findLast is not a function
    at C:\Users\Yakov\Downloads\apkmirror-downloader\bin\apkmd.cjs:31:395
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Could not find stable version
    at pb (C:\Users\Yakov\Downloads\apkmirror-downloader\bin\apkmd.cjs:29:1304)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async C:\Users\Yakov\Downloads\apkmirror-downloader\bin\apkmd.cjs:31:225

Press any key to exit ...

I used the default config provided in the README.md and running nodeJS version 16.13.0. I appreciate you for maintaining.

tanishqmanuja commented 3 months ago

I suspect that upgrading node version would fix this. Because .findLast and other array method were added in node 18.

Also you could replace arr.findLast with equivalent code like arr[arr.length - 1] for now.

Yakov5776 commented 3 months ago

That seems to be the issue, thank you!