Skip to content

Library production build error on latest version 3.1.0 #345

@joeveiga

Description

@joeveiga

Describe the bug

It works fine up to v3.0.0. Latest update caused an error on our build pipeline with what it seems to be breaking changes introduced on v3.1.0.

An unhandled exception occurred: node_modules/highcharts-angular/lib/highcharts-chart.component.d.ts:24:18 - 
error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

24     static ɵcmp: i0.ɵɵComponentDeclaration<
  HighchartsChartComponent,
  "highcharts-chart",
  never, { 
    "Highcharts": "Highcharts";
    "constructorType": "constructorType";
    "callbackFunction": "callbackFunction";
    "oneToOne": "oneToOne";
    "runOutsideAngular": "runOutsideAngular";
    "options": "options";
    "update": "update"; 
  }, { 
    "updateChange": "updateChange";
    "chartInstance": "chartInstance"; 
  }, 
  never, 
  never, 
  false, 
  never
>;

Expected behavior

Minor version changes to be compatible.

Setup used

  • NodeJS version: 14

  • Angular version: 13.3.4

  • TypeScript version: 4.6.4

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "esModuleInterop": true,
    "resolveJsonModule": true,
    "allowSyntheticDefaultImports": true,
    "module": "es2020",
    "target": "es2017",
    "typeRoots": ["node_modules/@types"],
    "lib": ["es2017", "dom", "es2019", "ESNext.BigInt"],
    }
  },
  "angularCompilerOptions": {
    "strictTemplates": false,
    "compilationMode": "partial"
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions