# Custom DX Component (FlightSeatMapTemplate) Not Displaying in Portal/App Studio - Console Errors Present

**URL:** <https://forums.pega.com/t/custom-dx-component-flightseatmaptemplate-not-displaying-in-portal-app-studio-console-errors-present/10633>\
**Category:** General\
**Tags:** 25-1-1, app-studio, pega-platform\
**Created:** [February 3, 2026, 2:25pm UTC](https://forums.pega.com/t/custom-dx-component-flightseatmaptemplate-not-displaying-in-portal-app-studio-console-errors-present/10633 "2026-02-03T14:25:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajendraPrasadGaddam](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@RajendraPrasadGaddam](https://forums.pega.com/u/RajendraPrasadGaddam)\
**Post date:** [February 3, 2026, 2:25pm UTC](https://forums.pega.com/t/custom-dx-component-flightseatmaptemplate-not-displaying-in-portal-app-studio-console-errors-present/10633/1 "2026-02-03T14:25:50Z")

</div>

A newly created custom DX `Template` component for a flight seat selection UI does not render in the Pega user portal or the App Studio preview panel. A standard Pega field placed in the same view renders correctly, confirming the container is functional. The component bundle loads successfully via the network, but console errors indicate a runtime execution failure within Pega framework files.

Steps Taken (Troubleshooting Performed):

1. **Component Creation:** Created `type: "Template"` component with `config.json`, `index.tsx`, and `styles.ts`.
2. **Data Mapping:** Mapped `D_SeatMap1List.pxResults` (verified 21 records returned) to the `seatData` prop in App Studio. Mapped `.SelectedSeat` as the target property.
3. **CSP Implementation:** Added and imported `create-nonce.ts` to satisfy Content Security Policy (CSP) requirements.
4. **Publishing:** Used `npm run publish` successfully multiple times after changes.
5. **Debugging:** Used browser Developer Tools (F12) to monitor network activity and console errors. Confirmed bundle loads with 200 OK status.
6. **Environment Sync:** Cleared `ConstellationSvcURL` DSS value and performed hard refreshes.

**Observed Behavior:**

- The area where the component should render is **blank** or white space.
- The browser console displays **3 or 4 red errors** within Pega files (e.g., `59438.1b55024e.js`, `Boa_dxcomp_componentsmap.js`), indicating a script execution failure upon component load.
- App Studio preview sometimes fails with `TypeError: Cannot read properties of null (reading 'getElementById')`.

**Expected Behavior:**

The interactive seat map UI defined in the component should display correctly in the Pega UI.

[config.txt](https://forums.pega.com/uploads/short-url/bixmffVWgUGdOFbZz0X8MoagFWT.txt) (1.8 KB)

[index.tsx\_.docx](https://forums.pega.com/uploads/short-url/vA4sb35oYNUzRWPMdUh1xec7tA4.docx) (17.8 KB)

[styles.ts\_.docx](https://forums.pega.com/uploads/short-url/4vKDpD00TTMfw9Sac6yEIWyr5i8.docx) (16.4 KB)

[create-nonce.ts\_.docx](https://forums.pega.com/uploads/short-url/en2ZeG9HR6urClYkgTzUe6cuVV1.docx) (14.1 KB)

 ![App Studio configuration.jpg](https://pega1.discourse-cdn.com/pega/original/3X/c/6/c67f8b0b0f0f5aa4d39d31ad0d6a369422621cd5.jpeg)

 ![Network tab.jpg](https://pega1.discourse-cdn.com/pega/original/3X/1/2/12924370c8c676f1befaf8075e5fcc93c7998ace.jpeg)

 ![console tab.jpg](https://pega1.discourse-cdn.com/pega/original/3X/7/6/762390f5b130909675d0a8cc9f7d7db7c8491deb.jpeg)

---

<div class="post-metadata">

**Author:** ![Sairohith](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sairohith/32/23362_2.png) [@Sairohith](https://forums.pega.com/u/Sairohith)\
**Post date:** [April 13, 2026, 2:59am UTC](https://forums.pega.com/t/custom-dx-component-flightseatmaptemplate-not-displaying-in-portal-app-studio-console-errors-present/10633/2 "2026-04-13T02:59:13Z")

</div>

The component is failing because your React code treats `seatData` as an array and immediately runs `seats.map(...)`, but in `config.json` that same property is defined as `TEXT`, so App Studio is passing a string like `D_SeatMap1List.pxResults` instead of the actual list. Fix the component by changing `seatData` in the config to a list or page-list style property that resolves the data page results, then republish and remap it in App Studio. After that, the prop type will match what the React code expects, and the template will render instead of crashing at runtime. Keep the field update tied to the configured target property as well, rather than hardcoding `.SelectedSeat`, so the template stays fully aligned with the App Studio configuration.
