san-ssr renderToSource之后的源码,没有父组件的方法,导致服务端渲染执行父组件方法报错 #614
EzrealDeng
started this conversation in
San周边
Replies: 1 comment 1 reply
-
我来修复一下,完成后回复。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
先贴代码
src/father.san
src/test.san 继承father.san
src/app.js
app.js构建出/dist/main.js,随后使用compileToSource 把app变成服务端渲染的source
ssr.js
此时ssr的render函数执行时会报this.fatherSay is not a function 错误
如果直接使用compileToRender函数编译出来的render则没有这个错误。
Beta Was this translation helpful? Give feedback.
All reactions