Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Typescript Error when running npm run build out of the box #22

Open
cn894 opened this issue May 29, 2019 · 1 comment
Open

Typescript Error when running npm run build out of the box #22

cn894 opened this issue May 29, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@cn894
Copy link
Member

cn894 commented May 29, 2019

Steps followed:

  1. Cloned from master branch
  2. run npm install
  3. run npm run build

The build fails with the following error:

> @microsoft/applicationinsights-mezzurite@1.0.9 build C:\Users\caabreut.REDMOND\Desktop\ApplicationInsights-JS-Mezzurite
> npm run clean && tsc --p tsconfig.json && rollup -c && typedoc --out Doc


> @microsoft/applicationinsights-mezzurite@1.0.9 clean C:\Users\caabreut.REDMOND\Desktop\ApplicationInsights-JS-Mezzurite
> shx rm -rf _bundles dist dist-esm

src/Mezzurite.ts:114:7 - error TS2322: Type '{ name: string; url: string; }' is not assignable to type 'IPageViewPerformanceTelemetry'.
  Object literal may only specify known properties, and 'url' does not exist in type 'IPageViewPerformanceTelemetry'.

114       url:  url
          ~~~~~~~~~


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @microsoft/applicationinsights-mezzurite@1.0.9 build: `npm run clean && tsc --p tsconfig.json && rollup -c && typedoc --out Doc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @microsoft/applicationinsights-mezzurite@1.0.9 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:\Users\caabreut.REDMOND\AppData\Roaming\npm-cache\_logs\2019-05-29T17_41_27_124Z-debug.log

I am unsure if this was caused by the revving of the AI SDK version or some other previous commit. Nonetheless, a broken build out of the box is not acceptable and we should have CICD in place to have caught it.

@cn894 cn894 added the bug Something isn't working label May 29, 2019
@cn894
Copy link
Member Author

cn894 commented Jul 18, 2019

This is referring to the current 1.x implementation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant