vue开发中的报错
1.["Authorization"] is better written in dot notation把["Authorization"]改成[".Authorization"] 加个点子啊单词前面2.[babel-plugin-component] If you are using bothon-demand and importing all, make sure to invoke th
1.["Authorization"] is better written in dot notation
把 ["Authorization"]改成[".Authorization"] 加个点子啊单词前面
2.[babel-plugin-component] If you are using bothon-demand and importing all, make sure to invoke the importing all first.
这个错误比较灵性,试着重启一下项目,我的就是这样解决的,还没有找到其他方法
3.Missing whitespace after semicolon
分号后面记得空行
4.imported multiple times
问题:import次数过多
比如:
import {postRequest} from "./utils/api";
import {putRequest} from "./utils/api";
import {getRequest} from "./utils/api";
import {deleteRequest} from "./utils/api";
改写成:
import { postRequest, putRequest, getRequest, deleteRequest } from './utils/api';
更多推荐
所有评论(0)