Home App Docs Blog Github

Gettin Error: Cannot read property 'builderOptions' of undefined -- When trying to register custom component

Hello,

I am following the code examples from your git repos and I cannot register custom components. I keep getting an error that says: Cannot read property ‘builderOptions’ of undefined. When I include it in my index.js file.

Im using the code from: builder/examples/react-design-system/src/components/Heading at main · BuilderIO/builder · GitHub in my project that is build using next.js. This url example has options set, and so do I. My component is the same simple header being used in the example project.

My main goal is to get the code from builder/examples/react-design-system/src/components/Heading at main · BuilderIO/builder · GitHub to work in my own project as a test for more complex components. But I need this to work first.

I can get the “react design system” code to work on its own, but not when i try similar code in my next.js project.

What am I doing wrong?

problem solved! Thank you!!