Problem with initializing OpenTok
Closed this issue · 1 comments
Princeigwe commented
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
The class is Client and not OpenTok. Please checkout the sample documentation on how to properly import