当用作加载动态卡盘的函数时,vscode似乎不支持es6导入。vscode动态es6模块导入错误
导入实际上由webpack 2 + babel支持。
正常的es6导入或使用异步函数时没有问题。
直到我整合了babel-eslint之前,Eslint还报告了一个错误。
我使用vscode版本1.9.1
我试图用一个jsconfig.json但它并没有改变任何东西
{
// See http://go.microsoft.com/fwlink/?LinkId=759670
// for the documentation about the jsconfig.json format
"compilerOptions": {
"target": "es2017"
},
"exclude": [
"node_modules",
"bower_components",
"jspm_packages",
"tmp",
"temp"
]
}
“导入”表达式无效ES6。 – Bergi