You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot destructure property 'id' of 'undefined' as it is undefined.
at Object.getRenderer (node_modules/san-ssr/src/runtime/resolver.ts:32:34)
at eval (eval at createRenderer (node_modules/san-ssr/src/target-js/index.ts:92:60), <anonymous>:31:32)
at node_modules/san-ssr/src/target-js/index.ts:76:20
推断
经测试,只有在s-else 里面有动态组件的情况下才会报错,可能是模版解析时导致的。
初步解决方案
可以用s-if替代s-else/s-else-if
The text was updated successfully, but these errors were encountered:
描述
其中
mycomponent
为服务端注入的数据。值可以为aaa或者bbb
结果
当random为false时,会出现如下错误提示
推断
经测试,只有在s-else 里面有动态组件的情况下才会报错,可能是模版解析时导致的。
初步解决方案
可以用
s-if
替代s-else/s-else-if
The text was updated successfully, but these errors were encountered: