Unable to resolve module `stream`
See original GitHub issueIs 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (2 by maintainers)
Top Results From Across the Web
Unable to resolve module `stream` - Stack Overflow
just install stream using npm install stream and run the project again.
Read more >Error: Unable to resolve module 'stream' · Issue #33981 - GitHub
I have tried any clear command and action. ... If you are sure the module exists, try these steps: Clear watchman watches: watchman...
Read more >Module not found: Error: Can't resolve 'stream' in React project ...
I believe changing react-scripts to 4.0.3 and rerunning yarn install or npm install would've fixed this issue. There are several ways to get ......
Read more >Module not found: Error: Can't resolve 'stream' [Solved]
The error "Module not found: Error: Can't resolve 'stream'" occurs because there has been a breaking change in Webpack version 5.
Read more >unable to resolve module react-native-screens - You.com
This error means that either you haven't installed the react-navigation module or that you have installed the module but didn't re-built your project...
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
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”