Unable to resolve module `stream` from `node_modules\botframework-streaming\browser\subscribableStream.js`
See original GitHub issueI am trying to integrate Botframework-DirectlineJS to my react-native app but after installing the package “botframework-directlinejs” I am getting the following error inside dependency of a node module.
error: Error: Unable to resolve module stream
from node_modules\botframework-streaming\browser\subscribableStream.js
: stream could not be found within the project.
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules: rm -rf node_modules and run yarn install
- Reset Metro’s cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-* at ModuleResolver.resolveDependency (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15) at ResolutionRequest.resolveDependency (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\node-haste\DependencyGraph.js:287:16) at Object.resolve (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\lib\transformHelpers.js:267:42) at C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:434:31 at Array.map (<anonymous>) at resolveDependencies (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:431:18) at C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33 at Generator.next (<anonymous>) at asyncGeneratorStep (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Error: Unable to resolve module 'stream' · Issue #33981 - GitHub
Description The project was working fine a while ago, but suddenly it can't be executed, can anyone help me? I have tried any...
Read more >Unable to resolve module `stream` - Stack Overflow
This error starting showing up all of a sudden. Node : v10.16.3 React native : 0.60.5 react-native-cli: 2.0.1. bundling failed: Error ...
Read more >MongoDB Atlas App Services & Realm
Fresh Setup: Realm React Native Error: Unable to resolve module `./subscription` from `node_modules/realm/lib/browser/index.js`.
Read more >stream-browserify - npm
This module uses readable-stream , with additions for compatibility with npm packages that use old Node.js stream APIs.
Read more >Module not found: Error: Can't resolve 'stream' in React project ...
When I include web3 in a project I am getting node compile errors like this... ERROR in ./node_modules/cipher-base/index.js 3:16- ...
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
This should land in the 4.11 release and is reliant on https://github.com/microsoft/botbuilder-js/pull/2942.
The fix for resolving Node.js dependencies was just released in version 0.14.1 of
botframework-directlinejs
.