question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4.4.0 does not work with latest react-native

See original GitHub issue
  • Node Version: v.7.8.0
  • Npm Version: 4.2.0
  • Platform: react-native 0.44.3 on iOS 10.3
  • Package Version: contentful@4.4.0

I’m using the contentful JS-SDK in a react-native project. After upgrading from 4.3.0 to 4.4.0, the app no longer works due to contentful throwing an error on import:

Cannot read property '0' of null

in contentful.js:11297 which is the last line of this block:

        else if (
          typeof context.process == 'object' && !context.process.browser &&
          (data = context.process)
        ) {
          name = 'Node.js';
          arch = data.arch;
          os = data.platform;
          version = /[\d.]+/.exec(data.version)[0];
        }

I’ve downgraded to 4.3.0 and everything works as expected again.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
leoschweizercommented, Aug 11, 2017

@axe312ger I can confirm that it is working for me now 👍

0reactions
axe312gercommented, Aug 11, 2017

Awesome! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app is not working since version 4.0.1
The best solution I've found so far is to run npm install -g npm@latest which downgraded my npm version from 7.0.14 dev build...
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >
Releases - styled-components
revert rollup upgrade to resolve issues with cjs<>es default import interop ... update react-native component aliases to current stable list ...
Read more >
react-native-video - npm
Version 5.x recommends react-native >= 0.60.0 for Android 64bit builds and Android X support. Version 4.x requires react-native >= ...
Read more >
React v18.0 – React Blog
Note for React Native users: React 18 will ship in React Native with ... So we don't expect React developers to know how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found