[英]You may need an additional loader to handle the result of these loaders, r = ts(a[0])
[英]Vue - You may need an additional loader to handle the result of these loaders
我正在使用 Vue 和 babel。
我有一个出口的 function
//file a.js
export async function get() { ... }
我需要将此导出的 function 连接到 MyClass 的 static 方法
// file b.js
import myInterface from './a.js'
export class MyClass {
constructor() { ... }
static myFunction = myInterface.get // <=== error line 36
}
但我收到以下错误:
模块解析失败:意外令牌 (36:8) 使用这些加载器处理文件:*./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js 您可能需要额外的加载器来处理这些装载机的结果。
有什么问题?
你碰巧用过vuetify
吗? 如果是这样,请确保vue-cli-plugin-vuetify
和vuetify-loader
是同步的。 使用vue add vuetify
或npm install
它们的最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.