plotly / plotly/angular-plotly.js

Plotly object not found on window" when unit testing a component

Offen
#206 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
TypeScript
Sterne
242
Forks
81
Ø Merge
8 Std. 48 Min.
Gemergte PRs (30 T.)
18

Beschreibung

Error: Plotly object not found on window.
Error: Plotly object not found on window. at new PlotlyViaWindowModule (http://localhost:9876/_karma_webpack_/webpack:/node_modules/angular-plotly.js/fesm2015/angular-plotly.js.js:634:1) at Object.PlotlyViaWindowModule_Factory [as factory] (http://localhost:9876/_karma_webpack_/webpack:/node_modules/angular-plotly.js/fesm2015/angular-plotly.js.js:639:74) at R3Injector.hydrate (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.js:11457:1) at R3Injector.get (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.js:11276:1) at http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.js:11314:1 at Set.forEach (<anonymous>) at R3Injector._resolveInjectorDefTypes (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.js:11314:1) at new NgModuleRef$1 (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/core.js:25345:1) at R3TestBedCompiler.finalize (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/testing.js:926:1) at TestBedRender3.get testModuleRef [as testModuleRef] (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2015/testing.js:1789:1)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Den Unit-Test der Komponente anhand des gemeldeten Karma/Webpack-Stacktraces reproduzieren und das Angular-Plotly-Setup rund um PlotlyViaWindowModule untersuchen. Als erledigt gilt es, wenn der Test ohne „Plotly object not found on window“ initialisiert werden kann; das Issue nennt keine Quelldatei oder keinen Test des Repositorys, daher diese zuerst anhand der fehlschlagenden spec ermitteln.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend, testing
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.