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

vk io UnhandledPromiseRejectionWarning: Error: Not supported on 4.4.0 #457

Closed
DileSoft opened this issue Sep 14, 2021 · 1 comment
Closed

Comments

@DileSoft
Copy link

UnhandledPromiseRejectionWarning: Error: Not supported
    at Object.<anonymous> (node_modules\vk-io\lib\index.js:1712:22)

In that file you use import('node-fetch').then istead of require. Version of node is 12.13.0.

@negezor
Copy link
Owner

negezor commented Sep 15, 2021

The minimum required node version is 12.17.0 It was in this version that dynamic import was added to CJS.

At the moment, I'm faced with a dilemma, upgrade to node-fetch 3 or go to undici. Node.JS version 16 is recommended anyway. Since I need fixes of problems and not go away from the standard API to other request clients.

@negezor negezor closed this as completed Feb 23, 2022
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