reactjs-ui / reactjs-iscroll

基于 iscroll react 组件
MIT License
34 stars 16 forks source link

在项目中打包出错 gulp 出现以下错误 求大神解救 #2

Open hhhome opened 8 years ago

hhhome commented 8 years ago

已按照教程正常安装 npm install reactjs-iscroll --save

项目文件是这么引入的 import ReactIScroll from 'reactjs-iscroll'; import iScroll from 'iscroll';

但我在 gulp 的时候报错了 ,没有引入这个包的时候是正常的

[Error: Cannot find module '!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js?outputStyle=expanded!./iscroll.scss' from '/var/www/project/node_modules/reactjs-iscroll/dist']

hopefuture commented 8 years ago

出现上面的问题,一般是在 window 环境下,sass 安装失败的原因,建议重新安装 sass 以及相关的软件

hhhome commented 8 years ago

我这个是在 centos 7下开发的 , 不是直接npm install sass-loader css-loader 就可以了么 还需要安装 sass 环境吗?

hopefuture commented 8 years ago

该组件已不再维护,请用我最新的下拉刷新,上拉加载更多 https://github.com/reactjs-ui/reactjs-pull-refresh 也可用 https://github.com/reactjs-ui/reactjs-scroll,只处理滑动效果