【问题标题】:The browser tells "failed to compile"浏览器提示“编译失败”
【发布时间】:2019-08-26 15:35:22
【问题描述】:

我像这样导入引导 vue:

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'

我已经尝试咨询所有类似问题的论坛,但没有

导入'bootstrap/dist/css/bootstrap.css' 导入'bootstrap-vue/dist/bootstrap-vue.css'

Failed to compile.

/home/fabry/node_modules/bootstrap-vue/dist/bootstrap-vue.css (./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2!/home/fabry/node_modules/bootstrap-vue/dist/bootstrap-vue.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: No PostCSS Config found in: /home/fabry/node_modules/bootstrap-vue/dist
    at config.search.then (/home/fabry/Scrivania/programmazione/web/Vue/realVueFool/quiz/node_modules/postcss-load-config/src/index.js:91:15)

【问题讨论】:

    标签: css vue.js postcss


    【解决方案1】:

    你关注instructions here了吗?

    听起来您要么没有安装所有依赖项,要么未能在 Vue 应用中注册组件。

    【讨论】:

    • 谢谢,通过重新安装vue、boostrap-vue和bootstrap的依赖解决了,祝你有美好的一天。
    猜你喜欢
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    • 2017-10-31
    • 2014-02-02
    • 2013-10-04
    • 2022-11-14
    • 2013-03-07
    • 2017-09-18
    相关资源
    最近更新 更多