[英]Angular universal not adding scripts
I cant add angular universal to my project, i need it for prerendering我无法将 angular 通用添加到我的项目中,我需要它来进行预渲染
Every tutorial i see online when ppl use ng add @nguniversal/express-engine, they all get some package.json scripts updated.当 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
instead of ng add @nguniversal/express-engine而不是ng 添加@nguniversal/express-engine
use:利用:
ng add @nguniversal/express-engine --clientProject [nameOfProject] ng add @nguniversal/express-engine --clientProject [nameOfProject]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.