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?