How do I use `cheerio` in `react native`?
See original GitHub issueI like the cheerio
library. I want to use cheerio
in react native
, but it didn’t work
import cio from 'cheerio';
Loading dependency graph, done.
error: bundling: UnableToResolveError: Unable to resolve module `events` from `G:\React-Native\test\node_modules\htmlparser2\lib\Parser.js`: Module dop or in these directories:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:14 (1 by maintainers)
Top Results From Across the Web
react-native-cheerio - npm
Start using react-native-cheerio in your project by running `npm i react-native-cheerio`. There are 10 other projects in the npm registry ...
Read more >react-native-cheerio examples - CodeSandbox
Learn how to use react-native-cheerio by viewing and forking react-native-cheerio example apps on CodeSandbox.
Read more >Cheerio tutorial - web scraping in JavaScript with ... - ZetCode
We can use filter to apply a filter on the elements. main.js. import fetch from 'node-fetch'; import { load } from 'cheerio'; const...
Read more >cheerio
This video tutorial is a follow-up to Nettut's "How to Scrape Web Pages with Node.js and jQuery", using cheerio instead of JSDOM +...
Read more >How to install cheerio in react-native? - Stack Overflow
I have been trying to use cheerio in React-native, but none of the solutions provided in https://github.com/cheeriojs/cheerio/issues/1058 ...
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 FreeTop 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
Top GitHub Comments
@niocncn One of the libraries helped me, look https://github.com/oyyd/cheerio-without-node-native
No errors, can correctly parse.
You can install
react-native-cheerio
but pretend that it’scheerio
.If you are using NPM instead of Yarn, I think newer versions of NPM also support this.