danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

react-native: Unable to resolve module `util` #285

Closed BAE86AEC1946B6AB60CCD7452DC811F0 closed 3 years ago

BAE86AEC1946B6AB60CCD7452DC811F0 commented 3 years ago

image

error message:

"Unable to resolve module `util` from `node_modules\\feedparser\\lib\\feedparser\\index.js`: util could not be found within the project.
danmactough commented 3 years ago

This library is written for node. If you want to use it with react-native, you'll need to figure out how to make node core modules (like util) available, but that's outside the scope of this project. Maybe this link will help: https://hackernoon.com/using-core-node-js-modules-in-react-native-apps-64acd4d07140