cheerio-without-node-native
cheerio-without-node-native copied to clipboard
Unable to resolve module stream
Hi, i get this error Unable to resolve module stream RN 0.56 React 16.4.1 After i install stream, then it shows utils, then buffer etc Then finally i get superctor error! Please help to fix this issue
Hi, could you paste the error stack?
ok i will post the stack trace. will be great if you could make an example app.
bundling failed: Error: Unable to resolve module stream from /Users/andy/Projects/xyz/node_modules/cheerio-without-node-native/node_modules/parse5/lib/parser/parser_stream.js: Module stream does not exist in the Haste module map
Thank you. I will also add a test to prevent it from happening in the future.
I haven't noticed that recent versions of cheerio include parse5 which uses stream and cheerio rely on parse5 a lot. The fact makes maintaining this lib much more difficult, I think. I might add a notice for new users in README.md later.
@andy-io Using mechanism likes externals of webpack in your bundle tools and require('cheerio') might be a solution. But it depends on how cheerio use parse5.
Thanks for posting this. I upgraded react-native and am also seeing this problem. Were you guys able to fix it?
I read this comment - https://github.com/oyyd/cheerio-without-node-native/issues/1#issuecomment-459592814 - thanks for it! I am using v0.20.2 now and its working!