[英]React: import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; error
I'm using the reactstrap library, Successfully installed the bootstrap and reactstrap我正在使用 reactstrap 库,成功安装了 bootstrap 和 reactstrap
however when i use import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
但是,当我使用
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
react won't compile.反应不会编译。 Is there a workaround?
有解决方法吗?
try using the following import statement - without the node_modules/
and you should get around this issue尝试使用以下导入语句 - 没有
node_modules/
你应该解决这个问题
import 'bootstrap/dist/css/bootstrap.min.css';
working stackblitz here在这里工作stackblitz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.