Skip to content
New issue

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

san-ssr 可以支持sourcemap吗? #731

Open
leviscar opened this issue Sep 27, 2022 · 0 comments
Open

san-ssr 可以支持sourcemap吗? #731

leviscar opened this issue Sep 27, 2022 · 0 comments

Comments

@leviscar
Copy link

FATAL: 2022-09-27 15:04:10 pid[5342] logId[537247443] TemplateJsRenderError:Error: compversion:1.1.637 jsVersion: error:TypeError: Cannot convert undefined or null to object stack:TypeError: Cannot convert undefined or null to object
at Function.entries ()
at Object.iterate (/home/work/nodejs/node_modules/san-ssr/dist/runtime/underscore.js:114:50)
at eval (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :45:30)
at childSlots10. (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :112:118)
at eval (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :44:13)
at childSlots7. (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :117:111)
at eval (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :63:13)
at childSlots4. (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :134:106)
at eval (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :62:13)
at childSlots3. (eval at createRenderer (/home/work/nodejs/node_modules/san-ssr/dist/target-js/index.js:82:61), :154:98)

调用 compileToSource的方法,render出来以后,无法定位到出错的代码实际执行的代码片段

期望是可以支持成下面这种方式:
FATAL: 2022-09-27 15:04:10 pid[5342] logId[537247443] TemplateJsRenderError:Error: compversion:1.1.637 jsVersion: error:TypeError: Cannot convert undefined or null to object stack:TypeError: Cannot convert undefined or null to object
at src/components/ItemList.san (26:13)

参考vue ssr的sourcemap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant