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

Deployment failed, in log "Failed to compile." | npm ERR! code ELIFECYCLE #29

Open
vpintugorai opened this issue Apr 28, 2021 · 0 comments

Comments

@vpintugorai
Copy link

GreatIdeas app service deployment failed, following error is found in log under App Service > Deployment Center > logs-

"Building the client app using 'npm'. This may take several minutes...
npm run build

submitidea@1.0.0 build C:\home\site\repository\Source\Microsoft.Teams.Apps.SubmitIdea\ClientApp
react-scripts build

Creating an optimized production build...
Failed to compile.

C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/src/helpers/app-insights.ts
TypeScript error in C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/src/helpers/app-insights.ts(17,30):
Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'.
Types of property 'processTelemetry' are incompatible.
Type '(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext | undefined) => void' is not assignable to type '(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext | undefined) => void'.
Types of parameters 'itemCtx' and 'itemCtx' are incompatible.
Type 'import("C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/node_modules/@microsoft/applicationinsights-web/node_modules/@microsoft/applicationinsights-core-js/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext").IProcessTelemetryContext | undefined' is not assignable to type 'import("C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/node_modules/@microsoft/applicationinsights-core-js/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext").IProcessTelemetryContext | undefined'.
Type 'import("C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/node_modules/@microsoft/applicationinsights-web/node_modules/@microsoft/applicationinsights-core-js/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext").IProcessTelemetryContext' is not assignable to type 'import("C:/home/site/repository/Source/Microsoft.Teams.Apps.SubmitIdea/ClientApp/node_modules/@microsoft/applicationinsights-core-js/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext").IProcessTelemetryContext'.
The types returned by 'core()' are incompatible between these types.
Type 'IAppInsightsCore' is missing the following properties from type 'IAppInsightsCore': getCookieMgr, setCookieMgr TS2322

15 | config: {
16 | instrumentationKey: telemetry,

17 | extensions: [reactPlugin],
| ^
18 | extensionConfig: {
19 | [reactPlugin.identifier]: { history: browserHistory }
20 | }

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! submitidea@1.0.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the submitidea@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\local\AppData\npm-cache_logs\2021-04-28T06_12_14_438Z-debug.log"

Also tried following -
i) Failed after redeploy.
ii) I have deleted node_modules manually and redeploy, still failed

Find the full log -
Failed to deploy greatIdeas app.txt

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant