[英]problem with react-js-pagination css import
I am using react js pagination https://www.npmjs.com/package/react-js-pagination .我正在使用反应 js 分页https://www.npmjs.com/package/react-js-pagination 。 but i got a problem with the CSS import.
但我遇到了 CSS 导入的问题。 I got the below error.
我收到以下错误。 Module not found: Can't resolve 'bootstrap/less/bootstrap.less'
找不到模块:无法解析“bootstrap/less/bootstrap.less”
import React, { useEffect, useState } from "react";
import Pagination from "react-js-pagination";
import "./App.css";
import GetCount from "./GetCount";
require("bootstrap/less/bootstrap.less");
which npm package need to be installed.其中npm package需要安装。
check LESS support in your application, if not follow this article https://medium.com/@giordano.cardillo/adding-sass-or-less-support-to-create-react-app-38cbe6c370ce检查您的应用程序中的 LESS 支持,如果不遵循本文https://medium.com/@giordano.cardillo/adding-sass-or-less-support-to-create-react-app-38cbe6c370ce
Try to use,尝试使用,
import "bootstrap/less/bootstrap.less";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.