Skip to content

Directline sdk is broken without installing certain packages. Please address #288

Closed

Description

@xtianus79

Here is the errors from rxjs not working

ERROR in ./node_modules/botframework-directlinejs/lib/directLineStreaming.js
Module not found: Error: Can't resolve 'rxjs/BehaviorSubject' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/BehaviorSubject' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLineStreaming.js
Module not found: Error: Can't resolve 'rxjs/Observable' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/Observable' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/dom/ajax' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/empty' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/from' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/interval' in '/mnt/c/repos/ai-xxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/of' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/observable/throw' in '/mnt/c/repos/ai-xxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/catch' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/combineLatest' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/concatMap' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/count' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/delay' in '/mnt/c/repos/ai-xxxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/do' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/filter' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/map' in '/mnt/c/repos/ai-xxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/mergeMap' in '/mnt/c/repos/ai-xxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/retryWhen' in '/mnt/c/repos/ai-xxxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/share' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/add/operator/take' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

ERROR in ./node_modules/botframework-directlinejs/lib/directLine.js
Module not found: Error: Can't resolve 'rxjs/scheduler/async' in '/mnt/c/repos/ai-xxxxxxxx-frontend-website/node_modules/botframework-directlinejs/lib'

After installing rxjs-compat or I'm assuming rxjs 5.0
these are the remaining errors

ERROR in ./node_modules/botframework-streaming/browser/webSocket/nodeWebSocket.js
Module not found: Error: Can't resolve 'crypto' in '/mnt/c/repos/ai-xxxxxx-frontend-website/node_modules/botframework-streaming/browser/webSocket'
ERROR in ./node_modules/botframework-streaming/browser/webSocket/nodeWebSocket.js
Module not found: Error: Can't resolve 'http' in '/mnt/c/repos/ai-xxxxxxxxx-frontend-website/node_modules/botframework-streaming/browser/webSocket'
ERROR in ./node_modules/botframework-streaming/browser/subscribableStream.js
Module not found: Error: Can't resolve 'stream' in '/mnt/c/repos/ai-xxxxxxxx-frontend-website/node_modules/botframework-streaming/browser'

Activity

  1. added
    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.
    customer-reportedRequired for internal Azure reporting. Do not delete.
    on Jun 22, 2020
  2. compulim commented on Jun 22, 2020

    @compulim
    Collaborator

    xtianus79 what bundler are you using? I am guessing it is not Webpack, so it don't turn crypto/http/stream into node-libs-browser.

    Steven Gum (@stevengum) I think we need to take away Node.js dependencies from botframework-streaming.

  3. xtianus79 commented on Jun 24, 2020

    @xtianus79
    Author

    William Wong (@compulim) I am using Angular cli 9+ and to make matters super interesting Angular universal. lol I always have to decide if that is a culprit.

  4. compulim commented on Jun 26, 2020

    @compulim
    Collaborator

    xtianus79 I think there are two issues:

    We assume Webpack is everything. But in fact, Webpack is too magical (automatically convert Node.js package into node-libs-browser). Steven Gum (@stevengum) and Ashley Finafrock (@Zerryth) are trying to take away Node.js package or directly linking to node-libs-browser

    Another issue is the version of RxJS we are using is too old (5.5.10). May be it conflict with the version Angular brought in.

    We are not very familiar with Angular. Could you provide a minimal repos that can build and host Web Chat on Angular? So we could check that into our repos and make sure we our integration test will test basic functionality on Web Chat on Angular?

  5. stevengum commented on Jun 26, 2020

    @stevengum
    Member

    Closed #289 as the same error message was being reported here. Additionally, I have the same concerns about the missing node-libs-browser.

    Steven Gum (@stevengum) I am using in the project 3.8.3 but the streaming 3.5.2 is causing the issue I believe.

    xtianus79 regarding version of TypeScript used (comment)

  6. stevengum commented on Jul 8, 2020

    @stevengum
    Member

    Quick update from my end for botframework-streaming:

    I’m currently working on removing the node.js specific dependencies and either replacing it with an explicit pollyfill or creating a Node/Browser specific implementation classes.

    I have a simple manual integration test that I’m using to validate the work I’m doing.

    This work will ship with R10.

  7. added
    R11Release 11 - November 15th, 2020
    and removed
    R10Release 10 - August 17th, 2020
    on Aug 7, 2020
  8. stevengum commented on Aug 7, 2020

    @stevengum
    Member

    Unfortunately there isn't enough R10 bake time for the removal of the Node.js dependencies in the botframework-streaming.

    The currently targeted milestone is R11.

  9. stevengum commented on Feb 10, 2021

    @stevengum
    Member

    The crypto, http, and stream dependency resolution issue has been fixed via #323.

  10. 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.

  11. corinagum commented on Feb 11, 2021

    @corinagum
    Contributor

    Closing as resolved.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.R11Release 11 - November 15th, 2020customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions