Skip to content

Solve unmet peer dependencies for --no-legacyPeerDeps #4530

@compulim

Description

@compulim

Is it an issue related to Adaptive Cards?

  • Yes, this is an Adaptive Card issue but it is specific to Web Chat.

Do you have any screenshots?

image

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

NPM

Which hosting environment does this issue primarily affect?

Others or unrelated

Which browsers and platforms do the issue happened?

No response

Which area does this issue affect?

Others/unrelated

Is this an accessibility issue?

  • Yes, this is an accessibility issue.

Please describe the bug

When building Web Chat without --legacyPeerDeps, NPM is reporting incorrect peer dependency errors.

Do you see any errors in console log?

warning "botframework-webchat > [email protected]" has incorrect peer dependency "microsoft-cognitiveservices-speech-sdk@~1.17.0".
warning "botframework-webchat > microsoft-cognitiveservices-speech-sdk > [email protected]" has unmet peer dependency "asn1.js@^5.0.0".
warning "botframework-webchat > botframework-webchat-component > @emotion/css > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "botframework-webchat > botframework-webchat-component > @emotion/css > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".

How to reproduce the issue?

  1. Clone WebChat-release-testing
  2. Modify 01.create-react-app to install via pnpm
    1. corepack enable
    2. corepack install pnpm@latest --activate
    3. pnpm install
    4. pnpm add [email protected]

What is the expected and actual behavior?

Expected:
No warnings related to peer dependencies should be printed.

Actual:
A few warnings related to peer dependencies is printed.

Adaptive Card JSON

No response

Additional context

@rodrigorodriguez

Metadata

Metadata

Assignees

Labels

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

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions