Caps is not a valid object

Sorry, This is my first time using media soup. I am registering a device using

await this.device.load({ routerRtpCapabilities });

But it returns a type error saying:
Uncaught (in promise) TypeError: caps is not an object
The way I am creating the device is

this.device = new mediasoupClient.Device();

Make sure routerRtpCapabilities is what is returned from mediasoup’s router.

Thank you so much <3