Skip to content

Minimal bundled build is not loading #5518

@compulim

Description

@compulim

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Development build

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Others or unrelated

Which browsers and platforms do the issue happened?

Others or unrelated

Which area does this issue affect?

Others or unrelated

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

When loading webchat-minimal.js, it failed with the following error.

Image

Do you see any errors in console log?

Composer.tsx:795 botframework-webchat: Uncaught exception {error: TypeError: Cannot read properties of undefined (reading 'map')
    at http://localhost:5001/__dist_…}error: TypeError: Cannot read properties of undefined (reading 'map')
    at http://localhost:5001/__dist__/webchat-minimal.js:92740:38
    at Object.useMemo (http://localhost:5001/__dist__/webchat-minimal.js:3539:59)
    at useMemo (http://localhost:5001/__dist__/webchat-minimal.js:1316:26)
    at http://localhost:5001/__dist__/webchat-minimal.js:92739:52
    at Zl (http://localhost:5001/__dist__/webchat-minimal.js:3423:122)
    at Ni (http://localhost:5001/__dist__/webchat-minimal.js:3636:56)
    at Ci (http://localhost:5001/__dist__/webchat-minimal.js:3628:127)
    at Si (http://localhost:5001/__dist__/webchat-minimal.js:3623:267)
    at http://localhost:5001/__dist__/webchat-minimal.js:4723:68
    at qa (http://localhost:5001/__dist__/webchat-minimal.js:4730:16)

How to reproduce the issue?

  1. Load minimal bundle
  2. Bot send a message

What do you expect?

It should show the bot message.

What actually happened?

Nothing is shown and an error in the console.

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.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