For your own plugin, I think the (only?) problem is that you’re using an Ember global
export default Ember.Component.extend({
which should be refactored to
import Component from "@ember/component";
export default Component.extend({
(It would be even better to refactor it to class syntax but that’s not necessary to get your site back up and running)
ChatGPT is capable of spotting things like this, by the way.