node.isAncestor不是函数

问题描述 投票:1回答:1

当我运行npm run build:ssr命令时,它成功返回应用程序URL。请参见下文

Node server listening on http://localhost:4000

在浏览器中访问URL时,出现以下错误。

ERROR TypeError: node.isAncestor is not a function
    at DocumentFragment._ensureInsertValid (D:\xampp\htdocs\abc\dist\server.js:80983:14)
    at DocumentFragment.insertBefore (D:\xampp\htdocs\abc\dist\server.js:81113:12)
    at DocumentFragment.value (D:\xampp\htdocs\abc\dist\server.js:81129:17)
    at buildFragment (D:\xampp\htdocs\abc\dist\server.js:305246:26)
    at domManip (D:\xampp\htdocs\abc\dist\server.js:306281:14)
    at jQuery.fn.init.append (D:\xampp\htdocs\abc\dist\server.js:306472:10)
    at Owl.initializeStage (D:\xampp\htdocs\abc\dist\server.js:382409:17)
    at Owl.initialize (D:\xampp\htdocs\abc\dist\server.js:382471:8)
    at new Owl 
node.js angular angular-universal ssr
1个回答
0
投票

[您好像使用的是猫头鹰传送带,猫头鹰使用的是jQuery,SSR不支持它,因此无法在服务器端进行渲染。

© www.soinside.com 2019 - 2024. All rights reserved.