Closed rickvandermeij-aanzee closed 1 year ago
Hi @rickvandermeij-aanzee thanks for submitting this issue.
When are you getting that error?
We upgraded from 2.1.4
to 2.2.3
and using the StoryblokClient.
const storyblokApi = new StoryblokClient(
apiOptions,
this.endpoint,
);
should a ternary operator be sufficient?
Hi @rickvandermeij-aanzee we just released a new version of the SDK that includes a fix for this problem.
Can you update to the latest version of the SDK and check if it works for you now?
after updating to 2.2.10 the error is gone without the use of the polyfill
Describe the issue you're facing
After updating to 2.2.3 process.env is not defined. Why do we need this in our project. Sure thing you'll need it in cypress, but that should be a different config for your e2e
We had to inject this Polyfill:
Reproduction
none
Steps to reproduce
No response
System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations