You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/node_modules/@twilio-labs/plugin-rtc/src/serverless/functions/token.js:4
const AccessToken = Twilio.jwt.AccessToken;
^
ReferenceError: Twilio is not defined
The above is what I'm getting for the following lines:
import * as Twilio from 'twilio';
import * as TwilioToken from '@twilio-labs/plugin-rtc/src/serverless/functions/token';
dotenv.config();
const tokenFunction: ServerlessFunction = TwilioToken.handler;
so how can I fix this?
Thanks
The text was updated successfully, but these errors were encountered:
/node_modules/@twilio-labs/plugin-rtc/src/serverless/functions/token.js:4
const AccessToken = Twilio.jwt.AccessToken;
^
ReferenceError: Twilio is not defined
The above is what I'm getting for the following lines:
import * as Twilio from 'twilio';
import * as TwilioToken from '@twilio-labs/plugin-rtc/src/serverless/functions/token';
dotenv.config();
const tokenFunction: ServerlessFunction = TwilioToken.handler;
so how can I fix this?
Thanks
The text was updated successfully, but these errors were encountered: