chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
589 stars 845 forks source link

Frontend Build Errors #439

Closed sgoggins closed 4 years ago

sgoggins commented 5 years ago

Describe the bug:


 ERROR  Failed to compile with 4 errors                                                                                                     1:59:37 PM

 error  in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/axis.d.ts

ERROR in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/axis.d.ts
5:47 Type 'BaseAxis' is not generic.
    3 | import { Guide, GuideEncodingEntry, VlOnlyGuideConfig } from './guide';
    4 | import { LayoutAlign } from './vega.schema';
  > 5 | declare type BaseAxisNoSignals = AxisMixins & BaseAxis<number, number, boolean, number | boolean, string, Color, FontWeight, FontStyle, Align, TextBaseline, LayoutAlign, LabelOverlap, number[], TitleAnchor>;
      |                                               ^
    6 | declare type VgAxisConfigNoSignals = BaseAxisNoSignals;
    7 | interface AxisMixins {
    8 |     /**

 error  in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/axis.d.ts

ERROR in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/axis.d.ts
119:63 A type predicate's type must be assignable to its parameter's type.
  Type 'string | number' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.
    117 |     title?: GuideEncodingEntry;
    118 | }
  > 119 | export declare function isAxisProperty(prop: string): prop is keyof Axis;
        |                                                               ^
    120 | export declare const VG_AXIS_PROPERTIES: ("values" | "orient" | "titleAngle" | "titleAnchor" | "titleAlign" | "titleBaseline" | "titleColor" | "titleFont" | "titleFontSize" | "titleFontStyle" | "titleFontWeight" | "titleLimit" | "titlePadding" | "labels" | "labelAlign" | "labelAngle" | "labelColor" | "labelFont" | "labelFontSize" | "labelFontStyle" | "labelLimit" | "labelPadding" | "format" | "formatType" | "offset" | "zindex" | "encode" | "domain" | "title" | "scale" | "labelOverlap" | "titleOpacity" | "labelBaseline" | "labelFontWeight" | "labelOpacity" | "labelSeparation" | "ticks" | "grid" | "labelFlush" | "minExtent" | "maxExtent" | "bandPosition" | "titleX" | "titleY" | "domainDash" | "domainDashOffset" | "domainColor" | "domainOpacity" | "domainWidth" | "tickColor" | "tickDash" | "tickDashOffset" | "tickExtra" | "tickOffset" | "tickOpacity" | "tickRound" | "tickSize" | "tickWidth" | "gridColor" | "gridDash" | "gridDashOffset" | "gridOpacity" | "gridWidth" | "labelBound" | "labelFlushOffset" | "gridScale" | "position" | "tickCount" | "tickMinStep")[];
    121 | export declare const AXIS_PROPERTIES: ("values" | "orient" | "titleAngle" | "titleAnchor" | "titleAlign" | "titleBaseline" | "titleColor" | "titleFont" | "titleFontSize" | "titleFontStyle" | "titleFontWeight" | "titleLimit" | "titlePadding" | "labels" | "labelAlign" | "labelAngle" | "labelColor" | "labelFont" | "labelFontSize" | "labelFontStyle" | "labelLimit" | "labelPadding" | "format" | "formatType" | "offset" | "zindex" | "encoding" | "domain" | "title" | "labelOverlap" | "titleOpacity" | "labelBaseline" | "labelFontWeight" | "labelOpacity" | "labelSeparation" | "ticks" | "grid" | "labelFlush" | "minExtent" | "maxExtent" | "bandPosition" | "titleX" | "titleY" | "domainDash" | "domainDashOffset" | "domainColor" | "domainOpacity" | "domainWidth" | "tickColor" | "tickDash" | "tickDashOffset" | "tickExtra" | "tickOffset" | "tickOpacity" | "tickRound" | "tickSize" | "tickWidth" | "gridColor" | "gridDash" | "gridDashOffset" | "gridOpacity" | "gridWidth" | "labelBound" | "labelFlushOffset" | "position" | "tickCount" | "tickMinStep")[];
    122 | export interface AxisConfigMixins {

 error  in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/legend.d.ts

ERROR in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/legend.d.ts
5:71 Type 'LegendConfig' is not generic.
    3 | import { Guide, GuideEncodingEntry, VlOnlyGuideConfig } from './guide';
    4 | import { LayoutAlign } from './vega.schema';
  > 5 | export declare type LegendConfig = LegendMixins & VlOnlyGuideConfig & VgLegendConfig<number, number, string, Color, FontWeight, FontStyle, Align, TextBaseline, LayoutAlign, LabelOverlap, SymbolShape, number[], Orient, TitleAnchor, LegendOrient> & {
      |                                                                       ^
    6 |     /**
    7 |      * Max legend length for a vertical gradient when `config.legend.gradientLength` is undefined.
    8 |      *

 error  in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/legend.d.ts

ERROR in /mnt/md0/github/augur-four/frontend/node_modules/vega-lite/build/src/legend.d.ts
46:33 Type 'BaseLegend' is not generic.
    44 |  * Properties of a legend or boolean flag for determining whether to show it.
    45 |  */
  > 46 | export interface Legend extends BaseLegend<number, number, string, Color, FontWeight, FontStyle, Align, TextBaseline, LayoutAlign, LabelOverlap, SymbolShape, number[], Orient, TitleAnchor, LegendOrient>, LegendMixins, Guide {
       |                                 ^
    47 |     /**
    48 |      * Mark definitions for custom legend encoding.
    49 |      *

 ERROR  Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! augur-f@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the augur-f@0.1.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!     /home/sean/.npm/_logs/2019-10-24T13_59_37_356Z-debug.log

To Reproduce: Steps to reproduce the behavior:

  1. Follow installation steps
  2. make install or make rebuild
  3. You will see

Expected behavior: Suppress or removed the errors.

michaelwoodruffdev commented 5 years ago

Looks like these errors are within the Vega node module, so they're from the library were using for graphs

ccarterlandis commented 5 years ago

I see these errors as well, but the webpage still works for me. We should see if there's a way to suppress the errors, or maybe the package needs to be updated?

ccarterlandis commented 5 years ago

That being said, given that it's an internal package I'm not sure how easy that would be to suppress the errors. I'm not sure, we certainly give it a shot

Nebrethar commented 4 years ago

It looks like these errors don't show up on dev anymore. Can we close @ccarterlandis @michaelwoodruffdev ?