ember-cli-pagination Remote Paginated API不适用于最新的ember-cli

时间:2015-01-19 15:19:05

标签: javascript ember.js pagination ember-cli

每次我尝试使用它(https://github.com/mharris717/ember-cli-pagination)时,都会收到此错误:

File: fit2me-admin/routes/users.js
ENOENT, no such file or directory '/Users/johndoe/fit2me-admin/tmp/tree_merger-tmp_dest_dir-StzgqLlh.tmp/ember-cli-pagination/addon/remote/route-mixin.js'
Error: ENOENT, no such file or directory '/Users/johndoe/fit2me-admin/tmp/tree_merger-tmp_dest_dir-StzgqLlh.tmp/ember-cli-pagination/addon/remote/route-mixin.js'
    at Object.fs.statSync (fs.js:696:18)
    at addModule (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:84:46)
    at addModule (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:133:9)
    at /Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/index.js:59:7
    at $$$internal$$tryCatch (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:470:16)
    at $$$internal$$invokeCallback (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:482:17)
    at $$$internal$$publish (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:453:11)
    at $$rsvp$asap$$flush (/Users/johndoe/fit2me-admin/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1531:9)
    at process._tickCallback (node.js:442:13)

在出现此错误之前,虽然我收到类似的错误,但这是因为它试图查找remote/文件夹而不先进入addon/文件夹。

是的,我已经尝试过了:

rm -rf node_modules/
rm -rf bower_components/
npm cache clean
bower cache clean
npm install
bower install

它并没有奏效:(

0 个答案:

没有答案