You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resolve module stream from node_modules\botframework-streaming\browser\subscribableStream.js #317
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.
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:
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 ()
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)
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.
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?
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.
Activity
stevengum commentedon Oct 23, 2020
This should land in the 4.11 release and is reliant on microsoft/botbuilder-js#2942.
cwhitten commentedon Nov 9, 2020
Steven Gum (@stevengum) can you confirm this shipping with JS R11?
drfbwilliams commentedon Nov 15, 2020
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,
harshchawda commentedon Nov 15, 2020
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.
drfbwilliams commentedon Nov 16, 2020
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?
stevengum commentedon Nov 30, 2020
The fix in the underlying
botframework-streaminglibrary was completed in R11 and PR #323 contains the package bump to pickupbotframework-streaming@4.11.0. William Wong (@compulim) how do you want to proceed?hcyang commentedon Nov 30, 2020
Chris Whitten (@cwhitten), can you respond to an ETA on R11?
cwhitten commentedon Nov 30, 2020
This missed the R11 window but can catch the next train--ETA February 2021.
drfbwilliams commentedon Dec 1, 2020
Thanks for the update.... I'm not sure how to write a frown face in here..... all good
stevengum commentedon Feb 10, 2021
Fixed via #323.
stevengum commentedon Feb 10, 2021
The fix for resolving Node.js dependencies was just released in version 0.14.1 of
botframework-directlinejs.