plotly / plotly/angular-plotly.js

error TS2707 with Angular 14

Open
#233 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
242
Forks
81
Avg merge
8h 48m
Merged PRs (30d)
18

Description

Hi, I tried setting up plotly as described in the readme and got the following error:
Generic type 'ɵɵComponentDeclaration' requires between 7 and 8 type arguments.
I then setup a new angular Project and tried the same, withe the same error. Seems like an issue with the angular version right?

I paste my specs below:

Angular CLI: 14.2.11
Node: 16.19.0
Package Manager: npm 9.3.1
OS: darwin arm64

Angular: 14.3.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.11
@angular-devkit/build-angular   14.2.11
@angular-devkit/core            14.2.11
@angular-devkit/schematics      14.2.11
@angular/cli                    14.2.11
@schematics/angular             14.2.11
rxjs                            7.5.7
typescript                      4.7.4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the README setup with the reported Angular 14.3.0, TypeScript 4.7.4, Node 16.19.0, and npm 9.3.1 versions. Compare the result with a supported setup and determine whether the TS2707 error can be resolved or requires a documented compatibility limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.