cool-team-official / cool-uni

简洁易用的uni-app组件库
https://uni-docs.cool-js.com/
227 stars 67 forks source link

App.vue引入css文件会报错。 #10

Closed sanli-xy closed 3 years ago

sanli-xy commented 3 years ago

报错信息如下:

errror in ./src/App.vue?vue&type=style&index=1&lang=scss&

SassError: Undefined variable: "$cl-color-primary". on line 59 of node_modules/cl-uni/static/css/button.scss from line 2 of node_modules/cl-uni/static/css/index.scss from line 1 of node_modules/cl-uni/index.scss from line 79 of src/App.vue

                 color: $cl-color-primary;

----------^

@ ./src/App.vue?vue&type=style&index=1&lang=scss& 1:0-783 1:799-802 1:804-1584 1:804-1584 @ ./src/App.vue @ ./src/main.js

sanli-xy commented 3 years ago

安装的版本是1.6.6

sanli-xy commented 3 years ago

一直在官方文档首页看的引用方式,结果那个应该不是uni-app下的使用方式。uni-app下使用方式在uni-app导航下的运行栏目下