# Builder custom code error

**URL:** <https://forum.builder.io/t/builder-custom-code-error/6947>\
**Category:** Technical Questions\
**Tags:** react, nextjs\
**Created:** [December 11, 2024, 12:32pm UTC](https://forum.builder.io/t/builder-custom-code-error/6947 "2024-12-11T12:32:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehan](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@Mehan](https://forum.builder.io/u/Mehan)\
**Post date:** [December 11, 2024, 12:32pm UTC](https://forum.builder.io/t/builder-custom-code-error/6947/1 "2024-12-11T12:32:11Z")

</div>

Hello,

I have been getting this warning for a while now, and i can’t figure out what may the problem be.

**Warning** :

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/7/72767d8003870014f5224de2141805316042bdf7.png)

Now, I checked all my codebase for this which is shown that cannot be accessed but could not find such. Not to mention that everywhere i access builder io fields inside `data` i use typescript’s optional chaining `?.` (ex: ?.data?.…)

**Project dependency versions** :

```auto
 "dependencies": {
    "@builder.io/dev-tools": "^1.1.25",
    "@builder.io/react": "^5.0.11",
    "@builder.io/sdk": "3.0.7",
    "@fullhuman/postcss-purgecss": "^6.0.0",
    "@next/bundle-analyzer": "^15.0.3",
    "autoprefixer": "^10.4.20",
    "next": "14.2.16",
    "postcss": "^8.4.47",
    "react": "18.3.1",
    "react-dom": "18.3.1"
  },

```

**In the config files i use** - `'@builder.io/react/lite'` imports  
and for Builder io Component i use this:

```auto
const LazyBuilderComponent = lazy(() =>
  import('@builder.io/react').then((module) => ({
    default: module.BuilderComponent,
  }))
);

```

Any ideas or suggestions form fixing this warning ?

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [December 19, 2024, 1:15pm UTC](https://forum.builder.io/t/builder-custom-code-error/6947/2 "2024-12-19T13:15:59Z")

</div>

Hello @Mehan,

Thank you for reaching out. Could you please share the Builder content link where you are encountering this error?

Typically, this error occurs when the required data (in your case, `state.resources.data`) is not available during content rendering. If you could provide more details on how you’re passing this data, it would help us better understand the issue and assist you in resolving it more efficiently.

Looking forward to your response.

Thanks,

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [December 23, 2024, 6:09pm UTC](https://forum.builder.io/t/builder-custom-code-error/6947/3 "2024-12-23T18:09:48Z")

</div>

Hi @Mehan,

Please don’t hesitate to reach out if you need any further assistance in resolving the errors you mentioned.

Thanks,
