Failed to render HTML

The error occurred on the page: /toronto-expats/bangladeshis

While trying to render the HTML for "/toronto-expats/bangladeshis" an error occurred. In order to make the build succeed you'll need to fix the error in your site. See the stacktrace below to find the culprit. Also be sure to read Debugging HTML Builds if you need more help.

Error

ReferenceError: window is not defined
    at AdUnit (/var/lib/jenkins/workspace/in-content-platform_main@2/.cache/page-ssr/routes/webpack:/content-platform/src/components/core/GlobalPartners.tsx:11:5)
    at Fb (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:65:44)
    at Ib (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:67:254)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
    at Jb (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:76:98)
    at Ib (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:68:145)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
    at Jb (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:76:98)
    at Kb (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:75:140)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:345)
    at Ib (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:68:479)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
    at Ib (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:67:482)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
    at Ib (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:71:68)
    at W (/var/lib/jenkins/workspace/in-content-platform_main@2/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)

Extra Details

Below you'll find additional data that might help you debug the error.

Page Data

The page data contains some metadata about the affected page. If data from the GraphQL is undefined, try running the query in the GraphiQL IDE.

{
  "errors": {},
  "path": "/toronto-expats/bangladeshis",
  "slicesMap": {},
  "pageContext": {
    "wpCorePageId": "cG9zdDoxNzk4Nw==",
    "events": [
      {
        "id": "c3e2b580-e19f-5fbd-925d-e2964396f200",
        "name": "Nordic Nights Film",
        "startDate": "2026-02-24T19:00:00-0500",
        "endDate": "2026-02-24T21:00:00-0500",
        "url": "https://www.internations.org/activity-group/2958/activity/657294",
        "image": "https://assets.in-cdn.net/image/{format}/2026/02/11/48a79331fb8bd691d4f2c8baf036a47a10bb28b30b3d0972555e3d2860b8b2c6.jpeg",
        "attendees": 5,
        "nationalityCount": 5,
        "localcommunityName": "Toronto",
        "localcommunityId": 60,
        "countryCode": "can",
        "isNewcomerOnly": false,
        "description": "Come watch this Icelandic film about a Danish priest in the early days of Iceland",
        "location": {
          "name": ""
        }
      },
      {
        "id": "21ee6af8-61af-5933-b72e-18cc1e4f15c9",
        "name": "Roses & Forget-Me-Nots: A Smile Serenades Cabaret",
        "startDate": "2026-02-24T19:15:00-0500",
        "endDate": "2026-02-24T21:00:00-0500",
        "url": "https://www.internations.org/activity-group/22107/activity/658239",
        "image": "https://assets.in-cdn.net/image/{format}/2026/02/21/ec5bd4c00b74e8227bb0337c3b49ec435f366afeca42c1c3561f1137c13361fd.png",
        "attendees": 3,
        "nationalityCount": 3,
        "localcommunityName": "Toronto",
        "localcommunityId": 60,
        "countryCode": "can",
        "isNewcomerOnly": false,
        "description": "Donation tickets are set at $20 as a recommendation (use Code RFMNVIP to get a complimentary ticket and make a donation of your own). \nGet your ticket @ https://www.canadahelps.org/en/charities/smile-theatre/events/roses-forgetmenots-a-smile-serenades-cabaret/\n\nIn support of Smile Theatre, a registered charity that has been bringing joy to seniors in care for over 50 years. We enrich lives by presenting professional, thoughtfully crafted musical theatre performances created especially for older adults.\n\nCome and join this love-themed cabaret, featuring the Smile Serenaders who regularly bring song, laughter, joy and companionship to isolated seniors in our community. \nThis special evening is a public showcase of the Smile Serenades program, and an opportunity to experience firsthand the magic that happens in our innovative creative care performances. Come raise a glass with us and experience romance, nostalgia, and stories of impact, as our performers share the songs that have brightened countless days for seniors and those in mental health care who need it most.\n\nAnd there's cake! Cash Bar will be available!",
        "location": {
          "name": ""
        }
      },
      {
        "id": "79f7904e-9e69-51c7-8668-f6d5e9f5ed45",
        "name": "Black Voices in Canadian Song",
        "startDate": "2026-02-25T17:00:00-0500",
        "endDate": "2026-02-25T18:30:00-0500",
        "url": "https://www.internations.org/activity-group/22495/activity/652884",
        "image": "https://assets.in-cdn.net/image/{format}/2025/12/28/e3b200daa1b6cd6511675526ae9c7ee3bf5eab0e82b12bf8e2e2d4a7a3a5cea5.jpeg",
        "attendees": 9,
        "nationalityCount": 9,
        "localcommunityName": "Toronto",
        "localcommunityId": 60,
        "countryCode": "can",
        "isNewcomerOnly": false,
        "description": "Canadian Art Song Project presents UofT Faculty of Music students in a program that celebrates Black Canadian composers and artists.\nThis concert is in celebration of Black History Month.  ",
        "location": {
          "name": ""
        }
      },
      {
        "id": "488bcdf3-d7bb-5599-8d3d-5fcf11d67790",
        "name": "InterNations Toronto: Newcomers Social Networking Event",
        "startDate": "2026-02-27T20:00:00-0500",
        "endDate": "2026-02-27T22:00:00-0500",
        "url": "https://www.internations.org/event/promotion/details/1061532",
        "image": "https://assets.in-cdn.net/image/{format}/2026/02/18/15056809c731b03ed4037c665496bf4b35a06282d64d67f50062e80588035eb9.png",
        "attendees": 12,
        "nationalityCount": 10,
        "localcommunityName": "Toronto",
        "localcommunityId": 60,
        "countryCode": "can",
        "isNewcomerOnly": true,
        "description": "Hello old friends and newcomers,\n\nWinter may have most people in the GTA staying indoors or escaping to warmer places, but it is also the perfect time to reconnect and welcome new faces into our community.\n\nJoin us for a relaxed and enjoyable evening at Pickle Barrel on Yonge Street.\n\nThis gathering is dedicated to welcoming new members, reconnecting with familiar faces, sharing experiences, networking , and sharing drinks together.\n\nWhether you have just arrived or are simply looking to expand your circle and network within the community, this is a great opportunity to do so.\n\nFeel free to bring a friend, come ready to connect, and enjoy a warm and friendly evening.\n\nLooking forward to seeing you there.",
        "location": {
          "name": "Pickel Barrel"
        }
      }
    ],
    "groups": [
      {
        "localcommunityId": 60,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2025/09/25/6f6223a68db7d9504ee72b8b5da611ccbfe16a0106fbfb1f4def0142be59e07b.jpeg",
        "title": "Brunch & Lunch Group",
        "url": "https://www.internations.org/activity-group/11780/activities",
        "memberCount": 826,
        "nationalityCount": 116,
        "type": "default"
      },
      {
        "localcommunityId": 60,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2025/10/31/6b38882db656efc99e687ee9f8170df07ab139e0e7ac66acd5653d75f8e84a47.jpeg",
        "title": "Live Music & Concerts Group",
        "url": "https://www.internations.org/activity-group/1626/activities",
        "memberCount": 889,
        "nationalityCount": 105,
        "type": "default"
      },
      {
        "localcommunityId": 60,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2025/09/25/b9ac8e9036cd34bea547a6af3d9176bcd2412b763a878cf92a11b67ee525f351.jpeg",
        "title": "Happy Hour Group",
        "url": "https://www.internations.org/activity-group/16511/activities",
        "memberCount": 1369,
        "nationalityCount": 124,
        "type": "default"
      },
      {
        "localcommunityId": 60,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2017/05/08/b132bfdaf7556167db356b3e2453823e786e9808b724d9321fcfc66eb04a1b3f.png",
        "title": "West GTA Group",
        "url": "https://www.internations.org/activity-group/21216/activities",
        "memberCount": 653,
        "nationalityCount": 95,
        "type": "default"
      }
    ],
    "guideLinks": [
      {
        "name": "Toronto",
        "slug": "toronto",
        "guides": [
          {
            "title": "Moving to Toronto",
            "url": "https://www.internations.org/toronto-expats/guide/moving-to-short"
          },
          {
            "title": "Living in Toronto",
            "url": "https://www.internations.org/toronto-expats/guide/living-short"
          },
          {
            "title": "Working in Toronto",
            "url": "https://www.internations.org/toronto-expats/guide/working-short"
          },
          {
            "title": "Moving to Canada",
            "url": "https://www.internations.org/canada-expats/guide/moving-to"
          },
          {
            "title": "Relocating to Canada",
            "url": "https://www.internations.org/canada-expats/guide/relocating"
          },
          {
            "title": "Visas & Work Permits in Canada",
            "url": "https://www.internations.org/canada-expats/guide/visas-work-permits"
          },
          {
            "title": "Housing in Canada",
            "url": "https://www.internations.org/canada-expats/guide/housing"
          },
          {
            "title": "Healthcare in Canada",
            "url": "https://www.internations.org/canada-expats/guide/healthcare"
          },
          {
            "title": "Banks & Taxes in Canada",
            "url": "https://www.internations.org/canada-expats/guide/banks-taxes"
          },
          {
            "title": "Education in Canada",
            "url": "https://www.internations.org/canada-expats/guide/education"
          },
          {
            "title": "Working in Canada",
            "url": "https://www.internations.org/canada-expats/guide/working"
          },
          {
            "title": "Living in Canada",
            "url": "https://www.internations.org/canada-expats/guide/living"
          }
        ],
        "location_type": "city"
      }
    ]
  }
}