# Vue-Komponente "sw-url-field" lässt sich nicht ohne JavaScript TypeError erweitern

**URL:** <https://forum.shopware.com/t/vue-komponente-sw-url-field-laesst-sich-nicht-ohne-javascript-typeerror-erweitern/102784>\
**Category:** Administration\
**Tags:** programming\
**Created:** [2. Februar 2024 um 08:03 UTC](https://forum.shopware.com/t/vue-komponente-sw-url-field-laesst-sich-nicht-ohne-javascript-typeerror-erweitern/102784 "2024-02-02T08:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/kathi/32/20047_2.png) [@kathi](https://forum.shopware.com/u/kathi)\
**Post date:** [2. Februar 2024 um 08:03 UTC](https://forum.shopware.com/t/vue-komponente-sw-url-field-laesst-sich-nicht-ohne-javascript-typeerror-erweitern/102784/1 "2024-02-02T08:03:02Z")

</div>

Hi ihr!

Habe vor ein paar Tagen schon einen [Stackoverflow-Post](https://stackoverflow.com/q/77920112/23326463) erstellt, aber leider noch keine Antwort bekommen, hänge aber bei dem Problem echt fest.

Ich benötige ein URL-Feld, das sich im Grunde genauso verhält wie Shopware’s `sw-url-field`, nur, dass es den Slash am Ende nicht automatisch beim Verlassen des Feldes entfernt. Wenn ich jedoch `sw-url-field` erweitere, dann bekomme ich folgenden Fehler:

```auto
An error was captured in current module: TypeError: Cannot read properties of null (reading 'bind')
    at a.$super (async-component.factory.ts:649:9)
    at a.validateCurrentValue (index.js:6:32)
    at a.checkInput (index.js:134:20)
    at a.value (index.js:104:5)
    at Cn (vue.esm.js:3736:25)
    at e.run (vue.esm.js:4252:82)
    at on (vue.esm.js:3241:30)
    at Array.<anonymous> (vue.esm.js:3864:37)
    at In (vue.esm.js:3805:12)

```

und das `http://` (bzw. `https://`) am Anfang der URL wird nicht mehr entfernt. Details dazu im [Stackoverflow-Post](https://stackoverflow.com/q/77920112/23326463).

Hat von euch jemand eine Idee, was ich hier falsch mache? Oder ist das ein Core-Bug??

Lieben Dank im Vorraus!
