Failed to render HTML

The error occurred on the page: /leuven-expats/es

While trying to render the HTML for "/leuven-expats/es" 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": "/leuven-expats/es",
  "slicesMap": {},
  "pageContext": {
    "wpCorePageId": "cG9zdDoyMjQyMA==",
    "events": [
      {
        "id": "26279cbd-e29b-5698-93ae-784e270945e8",
        "name": " Cape Verde Music Concert - City Theatre Leuven",
        "startDate": "2026-02-27T19:45:00+0100",
        "endDate": "2026-02-27T21:30:00+0100",
        "url": "https://www.internations.org/activity-group/1052/activity/655770",
        "image": "https://assets.in-cdn.net/image/{format}/2026/01/27/ced9feda761c7f2de00a919d72c87e7d3c3d0ee96bf735f447201be46c0edbce.jpeg",
        "attendees": 12,
        "nationalityCount": 11,
        "localcommunityName": "Leuven",
        "localcommunityId": 326,
        "countryCode": "bel",
        "isNewcomerOnly": false,
        "description": " Dear world music fans,\n\nWelcome to this concert from Cape Verdi and a drink. {% location %}  \nhttps://www.30cc.be/nl/programma/item/gente-2025-2026\nLocation: 30CC/Schouwburg - Bondgenotenlaan 21, Leuven. {% endlocation %} \n\nNancy Vieira (vocals), Olmo Marín (acoustic guitar and cavaquinho), Jorge Cervantes (acoustic guitar), Nelly Cruz (electric bass) and Diogo Melo de Carvalho (percussion)\n\nGente is the new album and tour by Nancy Vieira, one of Cape Verde's most expressive and representative voices. She brings a beautiful blend of Cape Verdean tradition and new sounds.\nThe title says it all: it's a repertoire of encounters, stories, ideas, but above all, of people. Following in the footsteps of the great Cesária Évora, the deep tradition and memory of Cape Verde are preserved here. Discover the soul of a beautiful country, expressed by a fantastic voice.\nThis performance is part of the Jump for Joy themed weekend.\n\nJoin us for great music organized by the cultural centre of Leuven.",
        "location": {
          "name": ""
        }
      },
      {
        "id": "1ee3d523-282e-56f5-9e49-cb18e034dd91",
        "name": "InterNations Leuven Event |Social Brunch",
        "startDate": "2026-03-08T12:00:00+0100",
        "endDate": "2026-03-08T15:30:00+0100",
        "url": "https://www.internations.org/event/promotion/details/1061512",
        "image": "https://assets.in-cdn.net/image/{format}/2026/02/16/a4ae9b90c05971d7c9a6510d0e44df9d5381ad8f39e5e08ba93f505f87840a6d.jpeg",
        "attendees": 23,
        "nationalityCount": 17,
        "localcommunityName": "Leuven",
        "localcommunityId": 326,
        "countryCode": "bel",
        "isNewcomerOnly": false,
        "description": "How about a cosy coffee, tea, choco and optional brunch get-together with the Leuven city explorers, along with some homemade bakery stuff. Privatized space for InterNations.\n\nBrunch (all-you-can-eat) 12 noon - 14h for those who confirm (23€). \n=> hot plate - grilled sweet potatoes, carrots, green beans, grilled mushrooms, bacon, scrambled eggs, oriental & mediterranean dishes.\n=> cold plate - Quinoa, fresh vegies, guacamole, hummus, bell pepper and tomato tapenade, mediterranean salad with grilled zucchini, tomato and mozzarella salad, smoked salmon, charcuterie, cheese, croissant, bread, granola and vegan yoghurt ...\n=> coffee, tea, water, refresco.\n=> Desserts - Fresh fruit, various homemade pastries.\n\nCoffee, tea, warm chocolate, pastry .... from 14h onwards for non-brunch guests (from the menu).\n\nBar Madrid is located just behind the Oude markt in Leuven centrum; check it out and kick off the winter with positive social energy. Come any time.... but pass on your best energy around 😃😃😃",
        "location": {
          "name": "Bar Madrid"
        }
      },
      {
        "id": "1879320b-4849-59b6-95a8-2d5aff715d6e",
        "name": "Authentic Greek Cuisine, Walk in Woods",
        "startDate": "2026-03-15T12:30:00+0100",
        "endDate": "2026-03-15T14:30:00+0100",
        "url": "https://www.internations.org/activity-group/1052/activity/653990",
        "image": "https://assets.in-cdn.net/image/{format}/2026/01/10/34ef25f09f54a6cf1043e24c3d6afac42967c24c66037c0f9898d744efe0ec51.jpeg",
        "attendees": 20,
        "nationalityCount": 15,
        "localcommunityName": "Leuven",
        "localcommunityId": 326,
        "countryCode": "bel",
        "isNewcomerOnly": false,
        "description": "Come for a delicious lunch on a relaxed Sunday afternoon; authentic Greek cuisine, friendly staff, great ambience. After lunch, we can have a lovely walk in the woods along the river Dijle and the Arenberg castle.\n\nThe restaurant is located in the woods, along the river Dijle with a lovely view of the Arenberg castle..... about 2750 km away from Athens.\n{% location %}https://www.restozorba.be/menu/\n\nhttps://www.restozorba.be/{% endlocation %}\n\nLooking forward to meeting you all... :)",
        "location": {
          "name": ""
        }
      }
    ],
    "groups": [
      {
        "localcommunityId": 326,
        "moodImage": "https://assets.in-cdn.net/image/{format}/2025/05/07/b50034586119367f193d4970d2c2d73ae69f2a4f2bef38c8e9a3c27ff465f26b.jpeg",
        "title": "City Explorers Group",
        "url": "https://www.internations.org/activity-group/1052/activities",
        "memberCount": 815,
        "nationalityCount": 113,
        "type": "default"
      }
    ],
    "guideLinks": [
      {
        "name": "Leuven",
        "slug": "leuven",
        "guides": [
          {
            "title": "Moving to Leuven",
            "url": "https://www.internations.org/leuven-expats/guide/moving-to-short"
          },
          {
            "title": "Living in Leuven",
            "url": "https://www.internations.org/leuven-expats/guide/living-short"
          },
          {
            "title": "Working in Leuven",
            "url": "https://www.internations.org/leuven-expats/guide/working-short"
          },
          {
            "title": "Moving to Belgium",
            "url": "https://www.internations.org/belgium-expats/guide/moving-to-short"
          },
          {
            "title": "Living in Belgium",
            "url": "https://www.internations.org/belgium-expats/guide/living-short"
          },
          {
            "title": "Working in Belgium",
            "url": "https://www.internations.org/belgium-expats/guide/working-short"
          }
        ],
        "location_type": "city"
      }
    ]
  }
}