react-native-render-html: Unable to resolve module `stream`
Is this a bug report or a feature request?
Bug reportt
Have you read the guidelines regarding bug report?
no
Have you read the documentation in its entirety?
yes
Have you made sure that your issue hasn’t already been reported/solved?
yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I have only checked on Android
Is the bug reproductible in a production environment (not a debug one)?
debug doesn’t run
Have you been able to reproduce the bug in the provided example?
no
Environment
Environment: React: ^16.6.3 React native: ^0.59.2 react-native-render-html: ^4.1.2
Target Platform: Android (6.0) iOS (10.3)
Hi , I have updated react-native
version to the latest. and I am trying to run:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
at first I got the error: ViewStylesPropTypes
but I guess that got resolved when I updated to 4.1.2
And now I get this error:
error Unable to resolve module `stream` from `/Users/yasir/Projects/jobsaf/node_modules/htmlparser2/lib/WritableStream.js`: Module `stream` does not exist in the Haste module map
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (2 by maintainers)
Hi, delete your
node_modules
folder and re-install it. You should be good to go.if use “htmlparser2”: “^4.0.0”,Unable to resolve module
stream
must use “htmlparser2”: “^3.10.1”Yes, i always do that,
the exactly error is:
error: Error: Unable to resolve module
./MultiplexHandler
fromnode_modules/htmlparser2/lib/CollectingHandler.js
:None of these files exist:
And yes, i always close metro, remove node_modules, run react reseting cache, etc…