Creating Plugin. constructor cannot be invoked with new

Started by tokidoki112 replies1,124 views
tokidoki11Original post
#1

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

tokidoki11
#2

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) {
    },
MerlijnTransloadit team
#3

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.