简体   繁体   English

警告在./node_modules/bootstrap/dist/css/bootstrap.css 中编译时有 1 个警告

[英]WARNING Compiled with 1 warning in ./node_modules/bootstrap/dist/css/bootstrap.css

Hello hope you are well!你好希望你一切都好!

I am creating a crud app in vuejs I have installed global vuejs, bootstrap and after that import file bootstrap in main.js.我正在 vuejs 中创建一个 crud 应用程序我已经安装了全局 vuejs、引导程序,然后在 main.js 中导入文件引导程序。

 import Vue from 'vue' import App from './App.vue' import './registerServiceWorker' import router from './router' import store from './store' import BootstrapVue from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap-vue.css' Vue.use(BootstrapVue) Vue.config.productionTip = false new Vue({ router, store, render: h => h(App) }).$mount('#app')

But when I run command npm run serve me display error: WARNING Compiled with 1 warning 6:43:27 PM但是当我运行命令 npm 运行服务我时显示错误:WARNING Compiled with 1 warning 6:43:27 PM

warning in./node_modules/bootstrap/dist/css/bootstrap.css警告在./node_modules/bootstrap/dist/css/bootstrap.css

Module Warning (from./node_modules/postcss-loader/dist/cjs.js): Warning模块警告(来自./node_modules/postcss-loader/dist/cjs.js):警告

(2482:3) autoprefixer: Replace color-adjust to print-color-adjust. (2482:3) autoprefixer:将颜色调整替换为打印颜色调整。 The color-adjust shorthand is currently deprecated.当前不推荐使用颜色调整速记。

Do you have any idea how to solve it?你知道如何解决它吗? Thanks in advance!提前致谢!

在此处输入图像描述

我有同样的问题,通过运行解决

npm install bootstrap@5.2.0-beta1

same problem whit boxicons:与boxicons相同的问题:

WARNING in./node_modules/boxicons/dist/boxicons.js警告在./node_modules/boxicons/dist/boxicons.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 反应:导入'../node_modules/bootstrap/dist/css/bootstrap.min.css'; 错误 - React: import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; error 无法解析'../node_modules/bootstrap/dist/css/bootstrap.min.css'? - Can't resolve '../node_modules/bootstrap/dist/css/bootstrap.min.css'? Webpack esm 模块解析“警告 in../node_modules/react-bootstrap/esm/index.js” - Webpack esm module resolve “WARNING in ../node_modules/react-bootstrap/esm/index.js” 模块警告(来自./node_modules/laravel-mix/node_modules/postcss-loader/dist/cjs.js): - Module warning (from ./node_modules/laravel-mix/node_modules/postcss-loader/dist/cjs.js): 无需Bootstrap.css的jQuery菜单目标 - jQuery menu aim without Bootstrap.css bootstrap.css className 不影响网站的样式 - bootstrap.css className is not effecting the styling of the website bootstrap.css和IE11问题 - bootstrap.css and IE11 issues AngularJs覆盖工具提示bootstrap.css样式 - AngularJs override tooltip bootstrap.css style 引导反应。/node_modules/bootstrap/dist/js/bootstrap.min.js 找不到模块:无法解析“jquery” - Bootstrap react ./node_modules/bootstrap/dist/js/bootstrap.min.js Module not found: Can't resolve 'jquery' 包括bootstrap.js和bootstrap.css cordova - Including bootstrap.js and bootstrap.css cordova
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM