m***@gmail.com
m***@gmail.com
  • 发布:2019-06-21 17:14
  • 更新:2023-02-27 17:10
  • 阅读:5911

cli模式创建的uni-app项目 sass添加后报错

分类:uni-app

以下是package.json的代码

 "dependencies": {  
    "@dcloudio/uni-app-plus": "*",  
    "@dcloudio/uni-h5": "*",  
    "@dcloudio/uni-mp-alipay": "*",  
    "@dcloudio/uni-mp-baidu": "*",  
    "@dcloudio/uni-mp-qq": "*",  
    "@dcloudio/uni-mp-toutiao": "*",  
    "@dcloudio/uni-mp-weixin": "*",  
    "flyio": "^0.6.2",  
    "lodash": "^4.17.11",  
    "moment": "^2.24.0",  
    "regenerator-runtime": "^0.12.1",  
    "vue": "^2.6.10",  
    "vuex": "^3.0.1"  
  },  
  "devDependencies": {  
    "@dcloudio/uni-cli-shared": "*",  
    "@dcloudio/uni-template-compiler": "*",  
    "@dcloudio/vue-cli-plugin-hbuilderx": "latest",  
    "@dcloudio/vue-cli-plugin-uni": "latest",  
    "@dcloudio/webpack-uni-mp-loader": "*",  
    "@dcloudio/webpack-uni-pages-loader": "*",  
    "@types/html5plus": "*",  
    "@types/uni-app": "*",  
    "@vue/cli-plugin-babel": "3.5.1",  
    "@vue/cli-service": "^3.8.0",  
    "babel-plugin-import": "^1.11.0",  
    "cross-env": "^5.2.0",  
    "node-sass": "^4.12.0",  
    "postcss-comment": "^2.0.0",  
    "sass-loader": "^7.1.0",  
    "vue-template-compiler": "^2.6.10"  
  },

直接编译后报错显示

只调用了css的loader
请问怎么解决?

2019-06-21 17:14 负责人:无 分享
已邀请:
猫腻

猫腻

这个问题解决了吗。?

  • m***@gmail.com (作者)

    强行写vue.config.js解决了 但是会引入其他新的问题

    2019-08-30 14:55

1***@qq.com

1***@qq.com - jinxing2037

您好这个问题解决了吗?

楚小秋

楚小秋

这么久了无人解决?

1***@qq.com

1***@qq.com

解决了吗,朋友

A***@qq.com

A***@qq.com

这问题解决了吗? cli 的更新和支持好滞后。。。。

t***@126.com

t***@126.com

这问题解决了吗?

1***@qq.com

1***@qq.com

23年了,用uni-cli还有sass的问题,按照官方文档创建的项目,各种问题,已经想要放弃cli的方式了

要回复问题请先登录注册