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:
- Created 6 years ago
- Comments:13 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@axe312ger I can confirm that it is working for me now 👍
Awesome! 😃