Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Copilot sample not working: ERESOLVE unable to resolve dependency tree #12414

Closed
therealjohn opened this issue Sep 18, 2024 · 6 comments
Closed
Assignees
Labels
needs attention This issue needs the attention of a contributor. TA:Infra Team Area: Infra

Comments

@therealjohn
Copy link
Contributor

Moved from microsoft/teams-ai#2029.


Language
Javascript/Typescript

Version
latest

Description
npm i @microsoft/teams-ai
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/openai
npm error openai@"~4.28.4" from the root project
npm error
npm error Could not resolve dependency:
npm error peer openai@"^4.61.0" from @microsoft/[email protected]
npm error node_modules/@microsoft/teams-ai
npm error @microsoft/teams-ai@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:

npm resolution error report
While resolving: [email protected]
Found: [email protected]
node_modules/openai
openai@"~4.28.4" from the root project

Could not resolve dependency:
peer openai@"^4.61.0" from @microsoft/[email protected]
node_modules/@microsoft/teams-ai
@microsoft/teams-ai@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Reproduction Steps
npm i @microsoft/teams-ai

@therealjohn
Copy link
Contributor Author

@sholtomaud,

You shouldn't need to npm -i teams-ai for this. After you create the project, try just pressing F5 / Start Debugging in VS Code. That should work as-is.

My guess right now is that you are installing teams-ai to a newer version which has a bumped dependency package which is causing a conflict from the samples package.json settings.

@corinagum
Copy link

Sample customer is trying to run:
Custom CoPilot->AI Agent->TS->New Folder->SomeAppName->

@sholtomaud
Copy link

@sholtomaud,

You shouldn't need to npm -i teams-ai for this. After you create the project, try just pressing F5 / Start Debugging in VS Code. That should work as-is.

My guess right now is that you are installing teams-ai to a newer version which has a bumped dependency package which is causing a conflict from the samples package.json settings.

I'm not doing anything other than following what you guys instructed and it's not working.

@kuojianlu
Copy link
Contributor

@sholtomaud Please delete openai dependency from package.json, then run npm install again. This is a known issue and has been fixed in the lastest prerelease version of Teams Toolkit.

@sholtomaud
Copy link

Ok. Will do.

But why would you market/advertise this when it's broken from the get go?

@kuojianlu
Copy link
Contributor

Ok. Will do.

But why would you market/advertise this when it's broken from the get go?

Will be fixed in the stable release ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs attention This issue needs the attention of a contributor. TA:Infra Team Area: Infra
Projects
None yet
Development

No branches or pull requests

5 participants