Builder integration error: Looks like the Builder SDK has not been initialized properly (your API key has not been set). Make sure you are calling builder.init(“«YOUR-API-KEY»”); as early as possible in your application's code.
The integration has been done as is shown in the docs, so not sure what’s causing this
Thank you for bringing this to our attention. In order to better assist you, could you kindly provide us with a screenshot of the error you encountered, as well as your directory structure for Next.js? We appreciate your cooperation.
It looks like you’re using the app directory for integration, but the process is a bit different. To proceed, please refer to our documentation for the app router or consider creating a new Next.js project without the app directory and src folder.
The problem was that I was importing BuilderComponent from @builder.io/react and builder from @builder.io/sdk. So I solved it by importing builder also from @builder.io/react and initializing it.