-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am following the current instructions huddly-sdk
However I am getting the following errors from Node.js. stating that “MODULE NOT FOUND” and “Uncaught ReferenceError: sdk is not defined”
Here are the codes written in along with the errors below following below:
Welcome to Node.js v16.20.2.
Type ".help" for more information.
const HuddlyDeviceAPIUSB = require('@huddly/device-api-usb').default;
**Uncaught EceApiIP = require('@huddly/device-api-ip').default;
Uncaught Error: Cannot find module '@huddly/device-api-ip'
Require stack:
const HuddlySdk = require('@huddly/sdk').default;
Uncaught Error: Cannot find module '@huddly/sdk'
Require stack:
const usbApi = new HuddlyDeviceAPIUSB();
Uncaught ReferenceError: HuddlyDeviceAPIUSB is not defined
const ipApi = new HuddlyDeviceApiIP();
Uncaught ReferenceError: HuddlyDeviceApiIP is not defined
const sdk = new HuddlySdk([usbApi, ipApi], [usbApi, ipApi]);
Uncaught ReferenceError: HuddlySdk is not defined
let cameraManager;
undefined
sdk.on('ATTACH', (newDevice) => {
... cameraManager = newDevice;
... });
Uncaught ReferenceError: sdk is not defined
sdk.init();
Uncaught ReferenceError: sdk is not defined
sdk.on('ATTACH', (newDevice) => {
... cameraManager = newDevice;
... cameraManager.getInfo().then(console.log);
... });
Uncaught ReferenceError: sdk is not defined