设置后无法启用产品模式 [英] Cannot enable prod mode after setup

查看:79
本文介绍了设置后无法启用产品模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Stack Blitz中启用产品模式时,有时会告诉我

When I try to enable prod mode in my Stack Blitz it sometimes tells me

设置后无法启用产品模式

Cannot enable prod mode after setup

https://stackblitz.com/edit/angular-gitter-fv1bhs

推荐答案

那是因为HMR.它不会重新加载窗口,因此旧平台实例仍然存在,因此它将尝试重新启动新实例,但是旧实例就像不,我们已经启动了"

That's because of HMR. It doesn't reload the window so the old platform instance is still there, so it tries to reinitalize the new instance but the old one is like "nope, we already started"

所以答案基本上是关闭/打开预览窗口.

So the answer is basically to close/open the preview window.

我希望它能起作用; D

I hope it works ;D

这篇关于设置后无法启用产品模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆