yinLiangDream / mp-colorui

MP-COLORUI 是基于 Taro框架的组件库,由于作者平时工作较忙,有时回复不及时,有事可以加QQ群 1145534886 咨询,文档请看这里→
https://yinliangdream.github.io/mp-colorui-doc/
MIT License
365 stars 41 forks source link

找不到 style/index.scss #98

Open LeeWeiZhang opened 3 years ago

LeeWeiZhang commented 3 years ago

为了更好的定位以及解决问题,在提交 ISSUE 时,我希望你

引入后就会有找不到index.js的问题了 主要的问题就是找不到这个文件了style/index.scss

./node_modules/mp-colorui/dist/weapp/index.js
Module not found: Can't resolve './style/index.scss' in '/Users/leeweizhang/Documents/projects/mp-yippi-activity/node_modules/mp-colorui/dist/weapp'

./node_modules/mp-colorui/dist/weapp/index.js
Module not found: Error: Can't resolve './style/index.scss' in '/Users/leeweizhang/Documents/projects/mp-yippi-activity/node_modules/mp-colorui/dist/weapp'
resolve './style/index.scss' in '/Users/leeweizhang/Documents/projects/mp-yippi-activity/node_modules/mp-colorui/dist/weapp'
  using description file: /Users/leeweizhang/Documents/projects/mp-yippi-activity/node_modules/mp-colorui/package.json (relative path: ./dist/weapp)
    using description file: /Users/leeweizhang/Documents/projects/mp-yippi-activity/node_modules/mp-colorui/package.json (relative path: ./dist/weapp/style/index.scss)

Screenshot 2020-10-07 at 2 15 54 PM

ado5 commented 3 years ago

请问解决了吗?我也是这个问题

LeeWeiZhang commented 3 years ago

请问解决了吗?我也是这个问题

没有解决。 我只能直接用他的demo改。

ado5 commented 3 years ago

请问解决了吗?我也是这个问题

没有解决。 我只能直接用他的demo改。

我现在直接将Git下载来用

catoldcui commented 3 years ago

+1, 看了下npm里少了几个文件

pang-xf commented 3 years ago

我是直接改源码的 import "../style/index.scss";

LeeWeiZhang commented 3 years ago

@hero-x 也是没有办法

yinLiangDream commented 3 years ago

请使用 1.0.0-beta.1版本,适配了Taro3,老版本是适配Taro2的

mouyong commented 3 years ago

Taro@^3.2 + mp-colorui@^1.0.0-beta.1:引入 index.scss 后,无表单验证相关的样式。