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` from `node_modules\botframework-streaming\browser\subscribableStream.js`

See original GitHub issue

I 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:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. 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:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stevengumcommented, Oct 23, 2020

This should land in the 4.11 release and is reliant on https://github.com/microsoft/botbuilder-js/pull/2942.

0reactions
stevengumcommented, Feb 10, 2021

The fix for resolving Node.js dependencies was just released in version 0.14.1 of botframework-directlinejs.

Read more comments on GitHub >

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

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