builder
builder copied to clipboard
Upgrading `@builder.io/sdk` to 2.2.1 breaks build
Describe the bug
We're trying to upgrade @builder.io/sdk to 2.2.1 from 2.1.1, it fails in build step:
throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
The API key is defined as an environment variable and it is passed correctly. We even tried passing an API key directly to the builder.init() function, but it still didn't work.
Additional context
It also appears that when we attempt to update @builder.io/react to 3.2.0 from 3.1.1, it fails with the same error.
Using: Next.js 14.1 Node 18
still has the same issue. any updates?