Creating Plugin. constructor cannot be invoked with new

Im creating a plugin right now, there is an error message

Class constructor BasePlugin cannot be invoked without 'new'

when trying to invoke it using uppy.use

I’m running my environment using Nuxt.js (vue based)
I wonder if there is some configuration i need to do

I commented out my nuxt config babel config

babel: {
      presets ({ isServer }) {
        return [
          [
            '@nuxt/babel-preset-app', { loose: true },
          ],
        ];
      },
    },
    plugins: [],
    /*
    ** You can extend webpack config here
    */
    extend (config, ctx) {
    },

Hi, can you share you plugin code and how you integrate it into Uppy? There isn’t enough information currently to help. This guide might also help in the meantime: Writing Plugins — Uppy.