0

我正在为我的应用程序使用聚合物入门套件并尝试构建它。打开已构建应用程序的 index.html 时,缺少 my-app.html。我没有更改入门工具包中的任何文件,问题也出现了。

重现步骤

创建应用项目:polymer init -->选择polymer-starter-kit 构建:polymer build 尝试查看index.html

这是我在控制台中得到的:

/src/my-app.html 加载资源失败:net::ERR_FILE_NOT_FOUND

webcomponents-loader.js 加载资源失败:net::ERR_FILE_NOT_FOUND

index.html:1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: 当前源的 URL 协议 ('null') 不受支持。

/images/favicon.ico 无法加载资源:net::ERR_FILE_NOT_FOUND

4

0 回答 0