opentok/opentok-node

Problem with initializing OpenTok

Closed this issue · 1 comments

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.

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