Realm.Credentials.anonymous() app is crashing

const appId = 'myAppId';
        const appConfig = {
            id: appId,
            timeout: 100000,
        const app =  new Realm.App(appConfig);
console.log("credentials ",Realm.Credentials.anonymous())
app is crashing while using Realm.Credentials.anonymous()

Hi Ayushi,

Could you please share the full crash logs?
Which SDK language and SDK version are you using?
Please also link the documentation you referred to when putting this code together.