Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录时出错. #55

Open
bshy522 opened this issue Mar 24, 2015 · 13 comments
Open

登录时出错. #55

bshy522 opened this issue Mar 24, 2015 · 13 comments

Comments

@bshy522
Copy link

bshy522 commented Mar 24, 2015

提示说code是必选参数?

同时首页获取文章列表也都报错了.

@guo-yu
Copy link
Owner

guo-yu commented Mar 24, 2015

是使用 master 分支的代码跑的吗?

@bshy522
Copy link
Author

bshy522 commented Mar 24, 2015

是的.

@bshy522
Copy link
Author

bshy522 commented Mar 24, 2015

7457bc9 用的这个提交.

@bshy522
Copy link
Author

bshy522 commented Mar 24, 2015

还有一个bug, express-scaffold 里面的sass中间件报错, 应该是sass模块更新了的原因.

@guo-yu
Copy link
Owner

guo-yu commented Mar 24, 2015

master 分支中的代码尚在重构中,可以使用 npm 中的稳定版本试试看

@bshy522
Copy link
Author

bshy522 commented Mar 24, 2015

好的 我试试.

@bshy522
Copy link
Author

bshy522 commented Mar 26, 2015

{ [Error: Failed to lookup view "error"]
  view:
   { name: 'error',
     root: '/Users/larry/candy-demo/node_modules/candy/node_modules/candy-theme-flat',
     defaultEngine: 'jade',
     ext: '.jade',
     engine: [Function],
     path: undefined } }
Error: Failed to lookup view "error"
    at Function.app.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/application.js:494:17)
    at ServerResponse.res.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/response.js:756:7)
    at Object.exports.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:11:14)
    at Object.res.format.html (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:41:22)
    at ServerResponse.res.format (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/response.js:466:13)
    at exports.notfound (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:35:14)
    at callbacks (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:161:37)
    at param (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:135:11)
    at pass (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:142:5)
    at nextRoute (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/router/index.js:100:7)
Error: Failed to lookup view "error"
    at Function.app.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/application.js:494:17)
    at ServerResponse.res.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/response.js:756:7)
    at Object.exports.render (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:11:14)
    at Object.exports.common [as handle] (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:31:18)
    at next (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/node_modules/connect/lib/proto.js:185:17)
    at Object.exports.xhr [as handle] (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:26:10)
    at next (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/node_modules/connect/lib/proto.js:185:17)
    at Object.exports.logger [as handle] (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/middlewares/error.js:20:10)
    at IncomingMessage.next (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/node_modules/connect/lib/proto.js:185:17)
    at fn (/Users/larry/candy-demo/node_modules/candy/node_modules/express-scaffold/node_modules/express/lib/response.js:751:25)

1.7版本 出这个错...

@guo-yu
Copy link
Owner

guo-yu commented Mar 26, 2015

估计是 candy-theme-flat 的版本没有固定住,在这之后 candy-theme-flat 的 error.jade 被拆分成了 404.jade 和 500.jade,你现在本地的 candy-theme-flat 版本是?

@bshy522
Copy link
Author

bshy522 commented Mar 26, 2015

0.1, 我自己改一下就行了么?

@bshy522
Copy link
Author

bshy522 commented Mar 26, 2015

我把theme换到了0.0.3 也不行~ 页面js依赖都没有了.

然后我尝试点了下登录 会有这个错误 Error: code required

@guo-yu
Copy link
Owner

guo-yu commented Mar 26, 2015

这周末我解决一下 candy 的问题吧~ 不好意思,最近比较忙,没时间贡献代码

@bshy522
Copy link
Author

bshy522 commented Mar 27, 2015

哦哦, 好的, 辛苦了. 感谢.

@bshy522
Copy link
Author

bshy522 commented Mar 31, 2015

这个错是因为多说的那个模块版本不对造成的么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants