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

[BotBuilder-AI] build failing #916

Closed
Bill7zz opened this issue May 8, 2019 · 4 comments · Fixed by #922
Closed

[BotBuilder-AI] build failing #916

Bill7zz opened this issue May 8, 2019 · 4 comments · Fixed by #922
Assignees
Labels
4.5 bug Indicates an unexpected problem or an unintended behavior.

Comments

@Bill7zz
Copy link
Contributor

Bill7zz commented May 8, 2019

Versions

BotBuilder-js latest package version.
nodejs version 10.14.2
npm version 6.9.0

Describe the bug

The BotBuilder-ai library is not installing the latest version of the @azure/ms-rest-js package.
This makes some conflicts with the cognitiveservices-luis-runtime library, as this is installing the latest version of the @azure/ms-rest-js package (1.8.4)

More info

According to the NPM CLI documentation, one of the package.lock.json goals are:

Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.

This suggests that the version defined in the package-lock.json will have priority over the ones defined in the package.json when the first one is present.

Additionally, we found an example of the usage of the package-lock.json that clarify the current issue in the botbuilder-ai library. More info Here.

The problem is that, by one hand the cognitiveservices-luis-runtime does not have a package-lock.json (that is because it must not be published, and it will be ignored. More info here) and, when the npm install command runs, the latest version of @azure/ms-rest-js (v1.8.4) will be installed; by the other hand, the botbuilder-ai library has a package-lock.json that specify to install the version (1.8.2) of the same dependency, which will cause some dependency issues regarding the versions.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the botbuilder-js repository
  2. run npm install
  3. run npm run build
  4. You will see the build of botbuilder-ai library broken.

Expected behavior

Build the solution successfully.

Screenshots

Build error:
image

Proposed Solution

  1. Update the BotBuilder-ai package.json to use @azure/ms-rest-js (~1.8.4) version, which will force the update of the package-lock.json
  2. Delete the package-lock.json and npm install to create it.
@Bill7zz Bill7zz changed the title BotBuilder-ai build failing [BotBuilder-AI] build failing May 8, 2019
@sgellock sgellock added 4.5 Approved bug Indicates an unexpected problem or an unintended behavior. labels May 9, 2019
@sgellock
Copy link
Member

sgellock commented May 9, 2019

I don't think the Cog Svc client team is pinning their version of ms-rest

@Bill7zz
Copy link
Contributor Author

Bill7zz commented May 10, 2019

Hi @sgellock, we want to let you know that we updated the description of the issue with more information.

@cleemullins
Copy link
Contributor

@Bill7zz CAn we update the Cognitive Services client to pin the ms-rest-js version? Unless we do that, we'll be chasing out tail.

@Bill7zz
Copy link
Contributor Author

Bill7zz commented May 10, 2019

@cleemullins Yes we can, but we need also to pin the version of ms-rest-js in botbuilder-ai library,
just to avoid possible problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.5 bug Indicates an unexpected problem or an unintended behavior.
Projects
None yet
5 participants