storyblok-js-client: Storyblok v5 not working on React Native on iOS

storyblok-js-client produces Unhandled promise rejection [TypeError: Cannot read property 'per-page' of undefined] on get('cdn/stories'... call on iOS. On Android it works fine.

It works on storyblok-js-client 4.5.8.

React Native 0.70.5 storyblok-js-client 5.0.4

Was that because axios was removed, and replaced with isomorphic-fetch? I’m not an expert in React Native, but if that’s the case I would suggest cross-fetch.

Please note that on v4, we need to use axios 0.27.2, because axios 1.1.3 also breaks React Native (it’s a different issue).

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (5 by maintainers)

Most upvoted comments

@longprao can you try version 5.1.6 which should default to encrypted connection again?