Replies: 1 comment 2 replies
-
不压缩构建,然后找一下,谁用到这个。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我们的程序已经排查了没有引用document等客户端api,但是压测的时候一直报如下错,看上去很可能是umi内部还在引用document等客户端api,导致这个问题。请问有什么办法么?
----------------服务端报错------------------- TypeError: Serializing native function: bound onwrite
at x (/www/app/sm-ssr/app/ssr/umi.server.js:9:421294)
at /www/app/s'm-ssr/app/ssr/umi.server.js:9:422507
at String.replace ()
at e (/www/app/sm-ssr/app/ssr/umi.server.js:9:422010)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:229869
at Generator.next ()
at v (/www/app/sm-ssr/app/ssr/umi.server.js:9:227758)
at o (/www/app/sm-ssr/app/ssr/umi.server.js:9:227961)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:228020
at new Promise ()
TypeError: Serializing native function: bound onwrite
at x (/www/app/sm-ssr/app/ssr/umi.server.js:9:421294)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:422507
at String.replace ()
at e (/www/app/sm-ssr/app/ssr/umi.server.js:9:422010)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:229869
at Generator.next ()
at v (/www/app/sm-ssr/app/ssr/umi.server.js:9:227758)
at o (/www/app/sm-ssr/app/ssr/umi.server.js:9:227961)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:228020
at new Promise ()
=(e.onChange,e.value,t.children);return Object(B["jsx"])("div",{className:"banner-mmodule",children:Object(B["jsx"])(ta,{autoplay:!0,children:n&&n.map(((e,t)=>Object(B["jsx"])("div",{className:N()("banner-list",{bc:!e.bannerImageUrl}),children:e.jumpUrl?Object(B["jsx"])("a",{href:e.jumpUrl,children:Object(B["jsx"])("img",{src:e.bannerImageUrl,alt:e.altText||""})}):Object(B["jsx"])("img",{src:e.bannerImageUrl,alt:e.altText||""})},
banner-${t}
)))})})}function aa(e){const t=e.schema,n=(e.onChange,e.value,t.children);let a=n[0],r=a.templateAttr,i=a.templateStyle;const o=_t.div`ReferenceError: document is not defined
at Function.H.newInstance (/www/app/sm-ssr/app/ssr/umi.server.js:1:463819)
at L (/www/app/sm-ssr/app/ssr/umi.server.js:9:649736)
at /www/app/sm-ssr/app/ssr/umi.server.js:9:650602
at new Promise ()
at Object.U [as open] (/www/app/sm-ssr/app/ssr/umi.server.js:9:650504)
at Object.V.e. [as error] (/www/app/sm-ssr/app/ssr/umi.server.js:9:651249)
at errorHandler (/www/app/sm-ssr/app/ssr/umi.server.js:1:506856)
at /www/app/sm-ssr/app/ssr/umi.server.js:1:498117
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Beta Was this translation helpful? Give feedback.
All reactions