Closed Princeigwe closed 5 months 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.
The class is Client and not OpenTok. Please checkout the sample documentation on how to properly import
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.