Plotly object not found on window" when unit testing a component
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- angular, typescript
Direzione di ricerca
Riprodurre il test unitario del componente usando lo stack trace di Karma/Webpack riportato e ispezionare la configurazione di Angular Plotly intorno a PlotlyViaWindowModule. Il lavoro è completato quando il test può essere inizializzato senza “Plotly object not found on window”; l’issue non indica alcun file sorgente o test del repository, quindi individuarli prima partendo dalla spec che fallisce.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- TypeScript
- Stelle
- 242
- Fork
- 81
- Merge medio
- 8h 48m
- PR unite (30g)
- 18
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di plotly/angular-plotly.js
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
plotly/angular-plotly.js#285 · 3 commenti ·
-
event handlers are not typed Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
plotly/angular-plotly.js#283 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
plotly/angular-plotly.js#281 · 8 commenti · 2 reazioni ·
-
Angular 19 specs won't run Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
plotly/angular-plotly.js#278 · 2 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
plotly/angular-plotly.js#276 · 2 commenti ·
Tutte le issue di plotly/angular-plotly.js
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Add: Star Sports 2 Telugu HD Apertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100