Camera not working

I get the following error trying to run the local build.

[JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: TypeError: Cannot read property ‘addEventListener’ of undefined
at Object.startConference (conference.js:677)
at Object.prejoinStart (conference.js:793)