gpt4 book ai didi

Angular 7 PWA - list 获取失败(状态 : 404) at Driver

转载 作者:行者123 更新时间:2023-12-03 16:03:41 25 4
gpt4 key购买 nike

未捕获( promise )错误: list 提取失败! (状态:404)在驱动程序。 (ngsw-worker.js:2368) 在 Generator.next () 完成 (ngsw-worker.js:1780)

部署我的 angular 7 项目 (PWA) 后出现此错误。任何解决方案?

最佳答案

我遇到了同样的问题,我找到了解决方案 here .

If you upload a .json file to your Windows Azure website and try to access it, it would give you a 404 File Not Found error because the MIME Type of .json is not set by default. This also applies in general to any file that might need a specific MIME Type.

To fix this issue, FTP into your website and upload the following Web.config file which will set the correct MIME types. If you already have a Web.config file in place, just add the below to the appropriate section.


Web.config :
<?xml version="1.0"?>

<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</configuration>

关于Angular 7 PWA - list 获取失败(状态 : 404) at Driver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56952146/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com