mp-colorui icon indicating copy to clipboard operation
mp-colorui copied to clipboard

找不到 style/index.scss

Open LeeWeiZhang opened this issue 4 years ago • 8 comments

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

  • mp-colorui 的版本号: 0.6.19

  • Taro 的版本号: 👽 Taro v3.0.14

引入后就会有找不到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

LeeWeiZhang avatar Oct 07 '20 06:10 LeeWeiZhang

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

ado5 avatar Oct 09 '20 05:10 ado5

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

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

LeeWeiZhang avatar Oct 09 '20 09:10 LeeWeiZhang

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

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

我现在直接将Git下载来用

ado5 avatar Oct 10 '20 03:10 ado5

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

catoldcui avatar Oct 24 '20 03:10 catoldcui

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

pang-xf avatar Oct 28 '20 03:10 pang-xf

@hero-x 也是没有办法

LeeWeiZhang avatar Oct 28 '20 04:10 LeeWeiZhang

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

yinLiangDream avatar Jan 12 '21 09:01 yinLiangDream

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

mouyong avatar Jul 06 '21 01:07 mouyong