question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `stream`

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
Exilzcommented, Jul 16, 2020

Hi, delete your node_modules folder and re-install it. You should be good to go.

5reactions
MrLaibincommented, Aug 11, 2020

if use “htmlparser2”: “^4.0.0”,Unable to resolve module stream must use “htmlparser2”: “^3.10.1”

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found