2.4.4
Reproduction linkhttps://github.com/imingyu/vue-server-renderer-bug.git
Steps to reproduce在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) })What is expected?
编译模板出错时,renderToString的回调函数中第一个参数(err)应该包含错误信息
What is actually happening?renderToString的回调函数中第一个参数无内容
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4