OfficeDev / microsoft-teams-apps-greatideas

An “innovation challenge” system that lets employees submit and share ideas and insights, with voting and contests. An app using which employees can submit an innovative idea in a selected category to be visible to all colleagues and leadership, ideas can be voted upon and a leader board of best idea contributors can be shared. This app can also be a route to file patent ideas by anyone in an organization.
MIT License
84 stars 35 forks source link

Update AppInsights dependencies and fix ITelemetryPlugin error #16

Open hmnzr opened 3 years ago

hmnzr commented 3 years ago

I have experienced an issue while attempting to deploy the app to App Service. The client app has failed to build with Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'. error.

I suspect this has happened due to a version mismatch from different app insights packages. @microsoft/applicationinsights-react-js has a dependency requirement on a @microsoft/applicationinsights-core-js with a caret and was resolved to 2.5.8, while @microsoft/applicationinsights-web has a fixed depency to 2.5.7.

Syncing both libraries to the latest versions worked for me.