opentok / opentok-node

OpenTok Server SDK for node.js
MIT License
164 stars 167 forks source link

Problem with initializing OpenTok #306

Closed Princeigwe closed 5 months ago

Princeigwe commented 1 year ago

TypeError: OpenTok is not a constructor

Different ways I've imported opentok:

const { OpenTok } = require("opentok"); const OpenTok = require("opentok"); import {OpenTok} from 'opentok

All these, and I still get the TypeError.

manchuck commented 5 months ago

The class is Client and not OpenTok. Please checkout the sample documentation on how to properly import