We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.4.4
https://github.com/imingyu/vue-server-renderer-bug.git
在node端运行下列代码:
const Vue = require('vue') const app = new Vue({ template: `<span>123</span> <div>Hello World</div>` }) const renderer = require('vue-server-renderer').createRenderer() renderer.renderToString(app, (err, html) => { if (err) throw err;//因为模板是不正确的,会报错,但是此处的err对象确实空的 console.log('success:'+html) })
编译模板出错时,renderToString的回调函数中第一个参数(err)应该包含错误信息
renderToString的回调函数中第一个参数无内容
The text was updated successfully, but these errors were encountered:
dff85b2
fix(ssr): handle inline template compilation error
f970fa4
fix vuejs#6766
21ccaba
我是2.6.12版本,也是这个错啊
Sorry, something went wrong.
No branches or pull requests
Version
2.4.4
Reproduction link
https://github.com/imingyu/vue-server-renderer-bug.git
Steps to reproduce
在node端运行下列代码:
What is expected?
编译模板出错时,renderToString的回调函数中第一个参数(err)应该包含错误信息
What is actually happening?
renderToString的回调函数中第一个参数无内容
The text was updated successfully, but these errors were encountered: