Skip to content

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

Closed

Description

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)

Activity

  1. added
    Bot Services
    customer-reported
    on Oct 22, 2020
  2. stevengum commented on Oct 23, 2020

    @stevengum
    Member

    This should land in the 4.11 release and is reliant on microsoft/botbuilder-js#2942.

  3. added
    customer-replied-to
    on Oct 23, 2020
  4. cwhitten commented on Nov 9, 2020

    @cwhitten
    Member

    Steven Gum (@stevengum) can you confirm this shipping with JS R11?

  5. drfbwilliams commented on Nov 15, 2020

    @drfbwilliams

    I am at this same issue.

    What is the work around? Not sure why it is in the package if its not yet available - or am I miss understanding which package is being used?

    Many thanks,

  6. harshchawda commented on Nov 15, 2020

    @harshchawda
    Author

    drfbwilliams I have degraded the the "botframework-directlinejs" package to 0.11.6 as a workaround. Definitively this is not the correct way bot this makes the job done.

  7. drfbwilliams commented on Nov 16, 2020

    @drfbwilliams

    Harsh Chawda (@harshchawda) - thanks so much for confirming a working version! I confirm that I too am able to work with 0.11.6

    Steven Gum (@stevengum) Chris Whitten (@cwhitten) - can you please provide an ETA on R11?

  8. stevengum commented on Nov 30, 2020

    @stevengum
    Member

    The fix in the underlying botframework-streaming library was completed in R11 and PR #323 contains the package bump to pickup botframework-streaming@4.11.0. William Wong (@compulim) how do you want to proceed?

  9. hcyang commented on Nov 30, 2020

    @hcyang

    Chris Whitten (@cwhitten), can you respond to an ETA on R11?

  10. cwhitten commented on Nov 30, 2020

    @cwhitten
    Member

    This missed the R11 window but can catch the next train--ETA February 2021.

  11. drfbwilliams commented on Dec 1, 2020

    @drfbwilliams

    Thanks for the update.... I'm not sure how to write a frown face in here..... all good

  12. stevengum commented on Feb 10, 2021

    @stevengum
    Member

    Fixed via #323.

  13. stevengum commented on Feb 10, 2021

    @stevengum
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bot Servicescustomer-replied-tocustomer-reported

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions