Closed fynn90 closed 8 years ago
你是用npm引入islider的么?
对。 用npm down 然后下来require('islider.js'); 为什么会是 islider.js 而不是 islider呢。再在 后面 require iSlider.animate.js 报错了。
检查下path有没有写错~ @xieyu33333 这名字确实.... 目录还得加后缀
@fatefan 对于使用commonjs规范的,比如webpack/requirejs等,配置定义包别名。
历史原因,一开始没往npm发布,等想起来的时候名字已经被占了。。
ok mingbaile
那你也可以用islider-js 或是 i-slider
use webpack require animate.js fail. chrome console 'Uncaught Error: Cannot find module "islider"'. It should islider.js but not islider.