Failed to render HTML

The error occurred on the page: /niger-expats

While trying to render the HTML for "/niger-expats" 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": "/niger-expats",
  "slicesMap": {},
  "pageContext": {
    "wpCorePageId": "cG9zdDoxNDI5",
    "events": [
      {
        "id": "09fcf185-e7b8-55bb-88e6-83cd208e5f48",
        "name": "InterNations Niamey 15th Anniversary",
        "startDate": "2022-09-24T19:30:00+0100",
        "endDate": "2022-09-24T21:30:00+0100",
        "url": "https://www.internations.org/event/promotion/details/1042119",
        "image": "https://assets.in-cdn.net/image/{format}/2022/08/29/3def835087b3e74dda71d2eb2d9620bf9a83134efa435a89bbfa4b63c47b3f62.jpeg",
        "attendees": 15,
        "nationalityCount": 10,
        "localcommunityName": "Niamey",
        "localcommunityId": 140,
        "countryCode": "nig",
        "isNewcomerOnly": false,
        "description": "Did you know InterNations will be a decade and a half in September? \n\nLet's come and celebrate and build a great network of diverse professionals and backgrounds.  \n\nLet's build the Niamey community together! \n\nI am looking forward to seeing you there! \n\nBest regards,",
        "location": {
          "name": "La Terrasse Mango"
        }
      },
      {
        "id": "a71ffc8d-26b5-589d-a073-6a2bce10d069",
        "name": "InterNations Niamey Let's Get to Know You!",
        "startDate": "2022-06-25T19:00:00+0100",
        "endDate": "2022-06-25T21:00:00+0100",
        "url": "https://www.internations.org/event/promotion/details/1040832",
        "image": "https://assets.in-cdn.net/image/{format}/2022/06/01/a996c033a4bd8a34db5dfa10f95e0917284457bb5a28625e7b2695c3af346458.jpeg",
        "attendees": 13,
        "nationalityCount": 8,
        "localcommunityName": "Niamey",
        "localcommunityId": 140,
        "countryCode": "nig",
        "isNewcomerOnly": false,
        "description": "Greetings, friends, and members, \n\nI humbly invite you to the first event since I became an Ambassador. I am looking forward to your engagement and support in building the Niamey community. \n\nI am excited to help with any concerns you have.\n\nI am looking forward to seeing you.\n\nBest regards,",
        "location": {
          "name": "La Terrasse Mango"
        }
      },
      {
        "id": "0e0dd2ec-79a6-5079-863a-fd0b1abc0f72",
        "name": "InterNations Niamey - Let's Talk!",
        "startDate": "2021-11-28T19:30:00+0100",
        "endDate": "2021-11-28T21:00:00+0100",
        "url": "https://www.internations.org/event/promotion/details/1038788",
        "image": "https://assets.in-cdn.net/image/{format}/2021/11/16/8ac44b2d3fd281a84053d357f6a6a49d0e57f5048efe55ebb8ba5ca984d56b8e.png",
        "attendees": 94,
        "nationalityCount": 39,
        "localcommunityName": "Niamey",
        "localcommunityId": 140,
        "countryCode": "nig",
        "isNewcomerOnly": false,
        "description": "In 2021 you made adjustments due to the effects of the COVID-19 crisis and concerns around security, transportation, and learning new skills.\n\nWhat are your high and low moments? In a few weeks, it is going to be 2022. What are you going to do to improve yours from your present position?\n\nSee you there!",
        "location": {
          "name": null
        }
      },
      {
        "id": "699f1fcc-b039-5cc0-8364-005b37c705c1",
        "name": "InterNations Niamley - Let's Meet!",
        "startDate": "2021-11-05T17:00:00+0100",
        "endDate": "2021-11-05T19:00:00+0100",
        "url": "https://www.internations.org/event/promotion/details/1038428",
        "image": "https://assets.in-cdn.net/image/{format}/2021/10/17/4cff9af59e3fa988d6cd94cc599c844d5870904eeed5bd7fa6d81b4f301c407b.png",
        "attendees": 27,
        "nationalityCount": 22,
        "localcommunityName": "Niamey",
        "localcommunityId": 140,
        "countryCode": "nig",
        "isNewcomerOnly": false,
        "description": "The Covid-19 pandemic calls for an adjustment to virtual reality. It is vital to build credibility by sharing our unique experiences in the new environment.\nThey say \"out of sight in out of mind.\" \nLet's connect through storytelling to change the maxim.",
        "location": {
          "name": null
        }
      }
    ],
    "groups": [
      {
        "localcommunityId": 140,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2024/01/23/33263d0c7cece8efe702293218c45ed39f905cbe147beff03524b1ee22231310.jpeg",
        "title": "Niamey Community Group",
        "url": "https://www.internations.org/activity-group/41131/activities",
        "memberCount": 763,
        "nationalityCount": 90,
        "type": "general_group"
      }
    ],
    "guideLinks": [
      {
        "name": "Niger",
        "slug": "niger",
        "guides": [
          {
            "title": "Moving to Niger",
            "url": "https://www.internations.org/niger-expats/guide/moving-to-short"
          },
          {
            "title": "Living in Niger",
            "url": "https://www.internations.org/niger-expats/guide/living-short"
          },
          {
            "title": "Working in Niger",
            "url": "https://www.internations.org/niger-expats/guide/working-short"
          },
          {
            "title": "Moving to Niamey",
            "url": "https://www.internations.org/niamey-expats/guide/moving-to-short"
          }
        ],
        "location_type": "country"
      }
    ]
  }
}