-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unable to resolve module 'stream' #33981
Comments
@t104360088 you should avoid importing "readable-stream" Can you show output of: yarn why readable-stream |
Macs-MacBook-Pro:testsock mac$ yarn why readable-stream
|
@shafqatbari Did you use |
Closing as this has been answered by @retyui (thanks for doing it 🙏 ) |
Than which module should we use to read readablestream in react native? |
RN needs |
Description
The project was working fine a while ago, but suddenly it can't be executed, can anyone help me?
I have tried any clear command and action.
error: Error: Unable to resolve module stream from D:.........\node_modules\readable-stream\readable.js: stream could not be found within the project or in these directories:
node_modules\readable-stream\node_modules
node_modules
If you are sure the module exists, try these steps:
Version
0.64
Output of
npx react-native info
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Memory: 16.13 GB / 31.96 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.15 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8512546
Visual Studio: Not Found
Languages:
Java: 11.0.15
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.1 => 0.64.1
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Run the code
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: