Skip to content

can't create instance #76

@ralyodio

Description

@ralyodio
import captchaSolver from '2captcha-node';

const solver = captchaSolver(API_KEY);
$ node bot.js 
file:///home/ettinger/src/profullstack.com/craigslist-bot/bot.js:9
const solver = captchaSolver(API_KEY);
               ^

TypeError: captchaSolver is not a function
    at file:///home/ettinger/src/profullstack.com/craigslist-bot/bot.js:9:16
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions