Vue-导入报错import ... =‘ can only be used in TypeScript files

原因很简单,就是不能使用横岗

import Elementui from 'element-ui' //不报错
import Element-ui from 'element-ui' //报错
posted @ 2020-10-19 11:57  HF10  阅读(3306)  评论(0)    收藏  举报