Skip to content

Unable to resolve module stream from node_modules\botframework-streaming\browser\subscribableStream.js #317

@harshchawda

Description

@harshchawda

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 ()
    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 ()
    at asyncGeneratorStep (C:\Users\Harsh.Chawda\Documents\POC\HealthAndSafetyPOC\Health-and-Safety-Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions