Currently working with Vue and babel.
I have a function that's been exported
// Inside file a.js
export async function get() { ... }
I am trying to link this exported function to a static method of MyClass
// Inside file b.js
import myInterface from './a.js'
export class MyClass {
constructor() { ... }
static myFunction = myInterface.get // <=== error line 36
}
However, I'm encountering the following error:
Module parse failed: Unexpected token (36:8) File was processed with these loaders: * ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js You may need an additional loader to handle the result of these loaders.
What could be causing this issue?