-
Notifications
You must be signed in to change notification settings - Fork 21
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
getNodeVersion doesn't work properly in angular when using algolia instant search #82
Comments
If you want to use algolia instant search and contentful in the same app on angular, you can add this to the existing algolia workaround:
|
Another related issue: using contentful-js in a NativeScript application. When manually settings process.version, the SDK works perfectly. Maybe we can put an extra check to ensure |
@jbaranski Thanks for opening this issue. We've had some trouble, especially with angular, since our SDKs are meant to be used in both the backend and the browser (see #58 for example). Since you have provided a workaround and our tooling maintenance is reduced at the moment, we won't be able to provide a better fix now. I did make a PR to address @foxted's suggestion above. I'll close this issue when that PR gets merged. |
🎉 This issue has been resolved in version 6.4.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
contentful-sdk-core/lib/utils.js
https://community.algolia.com/angular-instantsearch/getting-started.html (notice the workaround)
process.env.DEBUG
exist, so process object exists butprocess.versions
is not present. Your code throws an error when creating a client in angular in this scenario.The text was updated successfully, but these errors were encountered: