小编Kyl*_* Ma的帖子

清单:第 1 行,第 1 列,Chrome 浏览器语法错误

我有一个通过 npm run build 构建的 React 应用程序。从前端到后端的 GET 和 POST 请求给出状态 200,但我收到一个奇怪的错误,这可能导致我的文件中的所有图像都没有出现在本地主机上。

我已经尝试重新安装节点,添加了 'manifest_version': 2 因为它是 chrome manifest 的当前版本。

单击此处查看屏幕截图

清单:行:1,列:1,语法错误。下面是我的 index.html 文件

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <link rel="manifest" href="/manifest.json">
    <link rel="shortcut icon" href="/favicon.ico">
    <title>Django React Boilerplate</title>
    <link href="/static/css/2.87ad9c80.chunk.css" rel="stylesheet">
</head>

<body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
    <script>
        ! function(l) {
            function e(e) {
                for (var r, t, n = e[0], o = e[1], u …
Run Code Online (Sandbox Code Playgroud)

django google-chrome npm reactjs manifest.json

13
推荐指数
5
解决办法
3万
查看次数

标签 统计

django ×1

google-chrome ×1

manifest.json ×1

npm ×1

reactjs ×1