ReactJS:net::ERR_HTTP2_PROTOCOL_ERROR 200 与 .NetCore 在 HTTPS [英] ReactJS: net::ERR_HTTP2_PROTOCOL_ERROR 200 with .NetCore in HTTPS
问题描述
我使用 ReactJS 开发我的应用程序,之前还好,但突然出现这个错误:
I use ReactJS to develop my application, it was fine before, but suddenly this error happens:
GET https://localhost:44368/static/js/0.chunk.js net::ERR_HTTP2_PROTOCOL_ERROR 200
GET https://localhost:44368/static/js/0.chunk.js net::ERR_HTTP2_PROTOCOL_ERROR 200
我不知道这里发生了什么,以前还好.我该如何解决这个问题?
I do not know what is happening here, it was fine before. How can I fix this?
推荐答案
我正在使用 Visual Studio 2019 并遇到了同样的问题.这是我为解决它所做的:
I am using Visual Studio 2019 and experienced the same problem. This is what I did to resolve it:
从项目的Dependencies/Packages中移除'Microsoft.AspNetCore.SpaServices.Extentions' Nuget包,然后安装最新版本(安装5.0.6)
Removed 'Microsoft.AspNetCore.SpaServices.Extentions' Nuget package from the project's Dependencies/Packages, and then installed the latest version (Installed 5.0.6)
清理并重建解决方案,它再次开始工作.
Cleaned and rebuilt the solution and it started working again.
告诉我它是否适合您!
这篇关于ReactJS:net::ERR_HTTP2_PROTOCOL_ERROR 200 与 .NetCore 在 HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!