Rendere einen Beitrag über dem discovery-list-container-top Outlet

Ich habe let versucht und das Ergebnis war dasselbe. Es ist nur so, dass ich normalerweise const verwenden würde, wenn ich fetch() oder ajax() verwende.

Ich glaube, der Fehler kommt von der Zeile static template = . Damit erhalte ich:

[THEME 10283 'Pokemon Theme'] Error: connector component has no associated template. Ensure the template is colocated or authored with gjs.
    at h (plugin-connectors.js:35:11)
    at eY.renderInOutlet (plugin-api.gjs:1116:5)
    at todo.gjs:43:7
    at eH (plugin-api.gjs:3363:10)
    at Object.initialize (api.js:21:14)
    at i.initialize (app.js:265:28)
    at index.js:379:19
    at e.each (index.js:183:7)
    at e.walk (index.js:112:10)
    at e.each (index.js:59:20)
    at e.topsort (index.js:65:10)
    at iL._runInitializer (index.js:392:11)
    at iL.runInstanceInitializers (index.js:377:10)
    at l._bootSync (instance.js:116:22)
    at iL.didBecomeReady (index.js:784:18)
    at invoke (index.js:262:14)
    at m.flush (index.js:180:11)
    at g.flush (index.js:334:19)
    at z._end (index.js:762:32)
    at _boundAutorunEnd (index.js:499:12)

Und wenn ich einfach direkt <template> verwende, gibt es keinen Fehler. Ich glaube nicht, dass die Verwendung von static template hier gültig ist, daher funktioniert die direkte Verwendung des Template-Tags.

3 „Gefällt mir“