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.

How is current support for react-native?

See original GitHub issue

I’m following https://github.com/cheeriojs/cheerio/issues/1058 and I discovered https://github.com/oyyd/cheerio-without-node-native which works but is a fork.

I then tried to install events, stream and utils as mentioned, and also had to install buffer. I now get

undefined is not an object (evaluating superCtor.prototype)

https://imgur.com/a/VSukm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
Maskedman99commented, Dec 21, 2020

I was trying to get around #1058 and I found a solution but it involves the original cheerio module rather than the fork

$ npm i cheerio@0.22.0 $ npm i events stream buffer

I found the solution at https://www.jianshu.com/p/ddf574337c47 , you have to translate the page as its in foreign language.

 const cheerio = require("cheerio"); 
 let $ = cheerio.load('<h2 class="title">Hello world</h2>')
 console.log($("h2").text());

the above code works smooth. but,

const response = fetch(‘http://github.com’) const $ = cheerio.load(response.text()) gives error Can’t find variable: buffer

4reactions
ospfrancocommented, Dec 23, 2020

I just tested it and it seems to be working! thanks @fb55! 🎉🎉🎉🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Versions · React Native
React Native versions. Open source React Native releases follow a release train that is coordinated on GitHub through the react-native-releases repository.
Read more >
Support Policy · React Native for Windows + macOS
The React Native for Windows (RNW) Team strives to provide full support for the latest stable version of RNW, with progressively reduced support...
Read more >
react-native - npm
React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access...
Read more >
What Is React Native? Complex Guide for 2022 - Netguru
React Native (also known as RN) is a popular JavaScript-based mobile app framework that allows you to build natively-rendered mobile apps for iOS...
Read more >
API Reference - Expo Documentation
Typically, they will not support older versions of React Native, but they may. When a new version of React Native is released, the...
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