Custom section breaks after update 4.6->4.7

After updating Kirby core from 4.6 to 4.7, my custom sections plugin stopped working.
I received a “The section type “xxx” is not valid” error in the panel.

After some digging I found out the culprit.
I used to do this:

import testSection from "./components/test.vue";

panel.plugin("bvdputte/test", {
    sections: {
        test: {
            extends: testSection,
        }
    }
});

but apparently, I’m breaking Kirby with this. Changing this to

import testSection from "./components/test.vue";

panel.plugin("bvdputte/test", {
    sections: {
        test: testSection
    }
});

fixed it.

But I don’t really understand why I’m not allowed to do this any longer?
We’re not allowed to extend our components any longer?

Anything in the browser console?

I’m not at my work laptop, but I see this in the staging env:

(I’m back on Monday)

Thanks, I could reproduce it and created an issue: Plugin: error when component extends another component · Issue #7253 · getkirby/kirby · GitHub

1 Like