Javascript 获得;错误“未找到文件”;在我的Chrome扩展中';s弹出窗口

Javascript 获得;错误“未找到文件”;在我的Chrome扩展中';s弹出窗口,javascript,reactjs,google-chrome-extension,Javascript,Reactjs,Google Chrome Extension,我的清单如下所示: { "manifest_version": 2, "name": "My Extension", "description": "This extension is a starting point to create a real Chrome extension", "version": "0.0.1", "browser_action": { "default_popup": "./public/index.html", "def

我的清单如下所示:

{
  "manifest_version": 2,

  "name": "My Extension",
  "description": "This extension is a starting point to create a real Chrome extension",
  "version": "0.0.1",

  "browser_action": {
    "default_popup": "./public/index.html",
    "default_title": "Open the popup"
  },
  "icons": {
    "16": "/images/get_started16.png",
    "48": "/images/get_started48.png",
    "128": "/images/get_started128.png"
  },
  "permissions": [
  ]
}
以下是我的文件结构:


到目前为止,我所拥有的只是一个基本的react应用程序,它带有一个连接到chrome扩展的清单。是什么导致我的弹出窗口无法加载默认的react页面?我已经尝试了我能想到的index.html文件位置的每一种变化

看起来您正在使用create react应用程序。您需要在基本目录中运行
npm run build
来编译源文件,然后使用
build/
文件夹中生成的编译文件

当我试图只解包构建文件夹时,它说它缺少清单。我必须将清单移动到构建文件夹吗?现在弹出窗口只是加载空白。生成文件结构中是否缺少任何内容?:@AndrewG。这可能是代码的问题,而不是构建结构的问题