Closed slashinfty closed 3 years ago
Did not looked at v4 documentation, which requires
const OBSWebSocket = require('obs-websocket-js')
This same thing happen to me while trying to use it with nestjs but I solved it
import * as OBSWebSocket from 'obs-websocket-js'
const obs = new OBSWebsocket()
Description:
I keep getting
Uncaught TypeError: OBSWebSocket is not a constructor
.My code for it is
Versions Used (if applicable):