Cannot enable prod mode after setup

倾然丶 夕夏残阳落幕 提交于 2020-05-15 06:47:13

问题


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


回答1:


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.

I hope it works ;D



来源:https://stackoverflow.com/questions/47983242/cannot-enable-prod-mode-after-setup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!