简体   繁体   English

Angular + PWA = 无 SSR?

[英]Angular + PWA = No SSR?

I have configured an angular application with SSR, which works very well.我已经用 SSR 配置了一个 angular 应用程序,效果很好。

Now that I made my app a PWA using ng add @angular/pwa , the app is no longer pre-rendered.现在我使用ng add @angular/pwa我的应用程序变成了 PWA,该应用程序不再是预渲染的。

I have to reload the page with Ctrl+Shift+R, then it is pre-rendered again.我必须用 Ctrl+Shift+R 重新加载页面,然后再次预渲染。

I don't get an error message both in the Angular App and from my node server.我在 Angular 应用程序和我的节点服务器中都没有收到错误消息。

What can be the problem?可能是什么问题?

In ssr,在ssr中,

Do you have same error in SSR case please check " I have to reload the page with Ctrl+Shift+R, then it is pre-rendered again."在 SSR 案例中是否有相同的错误,请检查“我必须使用 Ctrl+Shift+R 重新加载页面,然后再次预渲染。” Is you meta tags are same on reload你的元标记在重新加载时是否相同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM