簡體   English   中英

Angular 通用不加腳本

[英]Angular universal not adding scripts

我無法將 angular 通用添加到我的項目中,我需要它來進行預渲染

當 ppl 使用 ng add @nguniversal/express-engine 時,我在網上看到的每個教程,他們都會更新一些 package.json 腳本。

When i do the same i add the angular universal, but nothing changes in package.json, and i cant prerender my project routes. When i try to add again, i see error that angular universal is already installed

而不是ng 添加@nguniversal/express-engine

利用:

ng add @nguniversal/express-engine --clientProject [nameOfProject]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM