'PlotlyModule' does not appear to be an NgModule class.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- angular, typescript
- Bereich
- frontend
Rechercherichtung
Beginne damit, den NG6002-Fehler mit den in der Issue aufgeführten Versionen Angular 17 und angular-plotly.js 4.0.4 zu reproduzieren. Untersuche app.module.ts und node_modules/angular-plotly.js/lib/plotly.module.d.ts und überprüfe anschließend, dass PlotlyModule ohne den Ivy-Kompatibilitätsfehler importiert werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
We are experiencing an issue when using angular-plotly.js and Angular17 saying that "'PlotlyModule' does not appear to be an NgModule class."
Error
error NG6002: 'PlotlyModule' does not appear to be an NgModule class.
176 PlotlyModule,
~~~~~~~~~~~~
node_modules/angular-plotly.js/lib/plotly.module.d.ts:1:22
1 export declare class PlotlyModule {
~~~~~~~~~~~~
This likely means that the library (angular-plotly.js) which declares PlotlyModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
app.module.ts
import * as PlotlyJS from 'plotly.js-dist-min';
import { PlotlyModule } from 'angular-plotly.js';
PlotlyModule.plotlyjs = PlotlyJS;
@NgModule({
declarations: [
...,
],
imports: [
...,
PlotlyModule,
...,
]
});
Package Details
"@angular/animations": "^17.0.9",
"@angular/cdk": "^16.2.13",
"@angular/common": "^17.0.9",
"@angular/compiler": "^17.0.9",
"@angular/core": "^17.0.9",
"@angular/forms": "^17.0.9",
"@angular/material": "^16.2.13",
"@angular/platform-browser": "^17.0.9",
@angular/platform-browser-dynamic": "^17.0.9",
"@angular/router": "^17.0.9",
"angular-plotly.js": "^4.0.4",
"moment": "^2.29.4",
"plotly.js-dist-min": "^2.21.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
Is there something that can be done that will enable this to work?
- Vorherrschende Sprache
- TypeScript
- Sterne
- 242
- Forks
- 81
- Ø Merge
- 8 Std. 48 Min.
- Gemergte PRs (30 T.)
- 18
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/angular-plotly.js
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
plotly/angular-plotly.js#285 · 3 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
plotly/angular-plotly.js#283 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
plotly/angular-plotly.js#281 · 8 Kommentare · 2 Reaktionen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
plotly/angular-plotly.js#278 · 2 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
plotly/angular-plotly.js#276 · 2 Kommentare ·
Alle Issues in plotly/angular-plotly.js
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
check:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100