zoukankan      html  css  js  c++  java
  • vue项目启动报错Module build failed: Error: No PostCSS Config found in:

     最近在做项目的时候, 需要把同事的项目拷贝到我的电脑上来。在安装好vue-li框架之后,

    重启提示报错   Module build failed: Error: No PostCSS Config found in: D:spaceworkwxadmins ode_modules\_element-ui@2.13.0@element-uilib heme-chalk     at config.search.then

    postcss/postcss-loader: PostCSS loader for webpack

    官网说是要有postcss.config.js的

    解决办法:在根目录新建postcss.config.js

    module.exports = { plugins: { 'autoprefixer': {browsers: 'last 5 version'} } }

    找了很多资料都没有说是因为什么,

    还有另一种解决办法就是

    在拷贝项目的时候,除了不要node-module文件夹,其他的隐藏文件,比如.开头的文件都要复制粘贴过来,重新安装vue-cli,启动就可以了。

    以上就是我对重启vue-cli启动报错Module build failed: Error: No PostCSS Config found in:的理解。

  • 相关阅读:
    day02
    Hive_分区排序(Distribute By)
    flink添加水位线
    SparkSQL读写JDBC
    spark累加器及UDTF
    datax同步json中文乱码问题
    mysql踩过的坑
    spark算子
    spark分区计算方式
    git操作
  • 原文地址:https://www.cnblogs.com/vickyzhang/p/12611148.html
Copyright © 2011-2022 走看看