0
点赞
收藏
分享

微信扫一扫

Import in body of module; reorder to top import/first


import React, { Component } from "react";
import { Icon } from "antd";
import { getLateBlock } from "../action/actions";

const { connect } = require("react-redux");
const { Link } = require("react-router-dom");

import "../style/type.css";
class LateBlock extends Component {

render() {
return <div>统计</div>
}
}
export default LateBlock

报错:Import in body of module; reorder to top import/first

解决:将​​import "../style/type.css";​​放在所有业务前面

import React, { Component } from "react";
import { Icon } from "antd";
import { getLateBlock } from "../action/actions";
import "../style/type.css";
const { connect } = require("react-redux");
const { Link } = require("react-router-dom");
class LateBlock extends Component {

render() {
return <div>统计</div>
}
}
export default LateBlock


举报

相关推荐

0 条评论