gpt4 book ai didi

node.js - everyauth 密码示例错误

转载 作者:太空宇宙 更新时间:2023-11-03 23:40:48 24 4
gpt4 key购买 nike

根据他们的指南,我遵循了 everyauth 的安装: http://everyauth.com/#installation

我正在尝试运行密码示例,但在我运行服务器并在浏览器中转到 localhost:3000 后,我收到此错误:

    Error: \workspace\test\node_modules\everyauth\example\views\home.jade:102
100| label(for='openid_identifier') OpenID Identifier:  
101| input(type='text', name='openid_identifier')
> 102| input(type='submit') Login
103| - else
104| h2 Authenticated
105| - if (everyauth.facebook)

input is self closing and should not have content.
at Object.Compiler.visitTag (\workspace\test\node_modules\jade\lib\compiler.js:455:32)
at Object.Compiler.visitNode (\workspace\test\node_modules\jade\lib\compiler.js:222:37)
at Object.Compiler.visit (\workspace\test\node_modules\jade\lib\compiler.js:209:10)
at Object.Compiler.visitBlock (\workspace\test\node_modules\jade\lib\compiler.js:292:12)
at Object.Compiler.visitNode (\workspace\test\node_modules\jade\lib\compiler.js:222:37)
at Object.Compiler.visit (\workspace\test\node_modules\jade\lib\compiler.js:209:10)
at Object.Compiler.visitTag (\workspace\test\node_modules\jade\lib\compiler.js:464:12)
at Object.Compiler.visitNode (\workspace\test\node_modules\jade\lib\compiler.js:222:37)
at Object.Compiler.visit (\workspace\test\node_modules\jade\lib\compiler.js:209:10)
at Object.Compiler.visitBlock (\workspace\test\node_modules\jade\lib\compiler.js:292:12)

有人遇到过这个问题吗?

最佳答案

这是一个 jade 问题,而不是 everyauth 问题。

解决方案:变化:

102|       input(type='submit') Login

致:

102|       input(type='submit',value='Login')

引用链接:

  1. input tag docs, showing the tag is a void (self-closing) element
  2. Jade docs on tags, self-closing
  3. Jade attribute examples
  4. input is self closing and should not have content
  5. error: input is self closing and should not have content

关于node.js - everyauth 密码示例错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24146232/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com