[SSR] When using a project managed by lerna, SSR reports an error after packaging.
Version
3.2.31
Reproduction link
Steps to reproduce
yarn install
- yarn
build:home
- node server.js
- open
http://127.0.0.1:3000/
What is expected?
After packaging, the SSR is normal.
What is actually happening?
(node:96140) UnhandledPromiseRejectionWarning: TypeError: Invalid value used as weak map key
at WeakMap.set (<anonymous>)
at normalizePropsOptions (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/dist/home/node/home-assets/js/index.171c932e.js:4949:15)
at createComponentInstance (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/dist/home/node/home-assets/js/index.171c932e.js:8225:23)
at renderComponentVNode (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/dist/home/node/home-assets/js/index.171c932e.js:14263:22)
at ssrRenderComponent (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/dist/home/node/home-assets/js/index.171c932e.js:14693:12)
at ssrRender (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/dist/home/node/home-assets/js/index.171c932e.js:15077:11)
at renderComponentSubTree (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:269:13)
at renderComponentVNode (/Users/ying/workspace/FEProjects/vue3-lerna-ssr/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:214:16)
at /Users/ying/workspace/FEProjects/vue3-lerna-ssr/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:462:30
at Generator.next (<anonymous>)
(node:96140) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)