OfficeDev / microsoft-teams-apps-faqplus

FAQ Plus is a friendly Q&A bot that brings a human in the loop when it is unable to help with an answer from the knowledge base.
MIT License
141 stars 145 forks source link

App deploy failed: library could not be resolved by the "cdnjs" provider #177

Closed blackchoey closed 2 years ago

blackchoey commented 2 years ago

I'm using the latest code on master branch. When I follow the deployment guide, the following 2 web app deployment failed during ARM deployment: image

Based on the logs in Azure Web App deployment center, the detailed error is:

libman.json : error LIB002: The "jquery-validation-unobtrusive@3.2.11" library could not be resolved by the "cdnjs" provider [C:\home\site\repository\Source\Microsoft.Teams.Apps.FaqPlusPlus.Configuration\Microsoft.Teams.Apps.FaqPlusPlus.Configuration.csproj]
libman.json : error LIB002: The "jquery-validate@1.19.1" library could not be resolved by the "cdnjs" provider [C:\home\site\repository\Source\Microsoft.Teams.Apps.FaqPlusPlus.Configuration\Microsoft.Teams.Apps.FaqPlusPlus.Configuration.csproj]

I also tried to build the app in my dev machine and same error occurred.

Porkai-Pandian commented 2 years ago

Hi @blackchoey,

Thank you for raising the issue, we're looking into the issue

blackchoey commented 2 years ago

Is there any update on this?

v-royavinash commented 2 years ago

@blackchoey Thanks for your patience. We are still analyzing it at our end and suspecting it to a bug. We will keep you posted with the updates/fixes.

blackchoey commented 2 years ago

Hi @v-royavinash Is there any update on this? I saw other people are facing similar issue: https://github.com/OfficeDev/microsoft-teams-apps-faqplus/issues/179

v-royavinash commented 2 years ago

@blackchoey We have identified it as a bug and currently testing the fix. We will release the fix post testing and keep you posted.

gsv022 commented 2 years ago

Hi @blackchoey , Please follow the below steps:-

Keep us posted.

frankqianms commented 2 years ago

Hi @gsv022, Thans for your advice, but it does not work for me, as i got a "Failed" status in the log.

image

Best regards, Frank

v-royavinash commented 2 years ago

@frankqianms , Can you please click on the blue highlighted (Commit ID) link and share us the logs?

frankqianms commented 2 years ago

Sure @v-royavinash . Here is the log, and I think the most important information is in the red box: some libraries can not be resolved, which is the same as the point mentioned by @blackchoey at the beginning of this issue.

image
v-royavinash commented 2 years ago

@frankqianms, The logs shows the package versions are still pointing to the older versions not the one we pushed.

Could you please share the repo URL that is used for deployment. You can click on the "Settings" tab in the above screenshot and check the URL.

If its pointing to https://github.com/OfficeDev/microsoft-teams-apps-faqplus.git , please click again on SYNC to take the latest changes.

frankqianms commented 2 years ago

@v-royavinash It works! Actually, we locally download this repo code and point to our url. Finally we found that some packages need to be upgraded. Please close it. Thanks a lot!