[Vuejs]-Module.exports is undefined when adding a class method

0👍

try these

  1. module.exports = new myClass
  2. mixin – it should look like so

    module.exports = () => new class newClass extends myClass{
    constructor(){
    super();
    }}

Leave a comment