Looking to incorporate a JavaScript class into my Vue application.
The class structure is as follows:
class className {
constructor() {
...
}
function1() {
...
}
static funtion2() {
...
}
}
Attempting to import this class into my application using:
- import className from './fileName.js';
- var {className} = require('./fileName.js')
However, in all cases when attempting to call a function of the class (className.function2()
), the function is coming up as undefined.