Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading @builder.io/sdk to 2.2.1 breaks build #2962

Open
jeniabrook opened this issue Jan 30, 2024 · 2 comments
Open

Upgrading @builder.io/sdk to 2.2.1 breaks build #2962

jeniabrook opened this issue Jan 30, 2024 · 2 comments
Labels

Comments

@jeniabrook
Copy link

jeniabrook commented Jan 30, 2024

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

@heejinp
Copy link

heejinp commented Feb 15, 2024

still has the same issue. any updates?

@samijaber
Copy link
Contributor

@jeniabrook Are you still able to reproduce this issue? The latest versions of each of our SDKs are continuously deployed and tested via CI, and we are not able to reproduce this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants