builder icon indicating copy to clipboard operation
builder copied to clipboard

Upgrading `@builder.io/sdk` to 2.2.1 breaks build

Open jeniabrook opened this issue 2 years ago • 1 comments

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

jeniabrook avatar Jan 30 '24 09:01 jeniabrook

still has the same issue. any updates?

heejinp avatar Feb 15 '24 01:02 heejinp