InvalidStateError: not loaded

I have encountered an error and I have no clue what it means. This seams to be the offending code, I checked the docs and I don’t understand why this would not work but throw an error.
InvalidStateError: not loaded

this.consumerTransport = this.device.createRecvTransport(this.consumerParams);
this.consumerTransport.on('connect', async ({ dtlsParameters }, callback) => {
    // connect
    await this.socket.emit('transportConsumeInit', {
        dtlsParameters,
    })
    callback()
});``

Reading the documentation usually helps:

Hi,

I had this error when using firefox as webrtc transport consumer, & chrome is fine(no error).
& then i put mediasoup server script to run inside docker(on Mac), chrome is also blocking.
I re-checked the documeentation, nothing missed.

Please avoid direct mentions.