本文介绍了如何使用Polymer的“聚合物服务" polyserve服务器查看Polymerfire演示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望看到该演示在我的浏览器中运行.相反,我看到空白页和以下控制台错误.
I expect to see the demo run in my browser. Instead, I see a blank page and the following console error.
我使用了以下过程:
- 我已按照说明安装了Polymer-CLI多功能工具在这里找到.
- 我使用Polymer Starter Kit(PSK)创建了一个项目.
- 我将项目命名为
my-app
. - 我使用CLI安装了在此处找到的Github存储库:
bower install ---save firebase/polymerfire
- 我打开终端并导航到应用程序的根目录.
cd path/to/my-app
- 我运行了以下Polymer-CLI命令(按照说明进行操作)在此处找到).
polymer serve
- I installed the Polymer-CLI multi-tool per the instructions found here.
- I created a project using the Polymer Starter Kit (PSK).
- I named the project
my-app
. - I installed the Github repo found here using the CLI:
bower install ---save firebase/polymerfire
- I opened the terminal and navigated to the app's root directory.
cd path/to/my-app
- I ran the following Polymer-CLI command (per the instructions found here).
polymer serve
我该怎么做才能解决此问题,以便可以在浏览器中看到演示?
What can I do to try and solve this so I can see the demo run in my browser?
推荐答案
运行元素演示的最佳方法是将其检出...
The best way to run an elements demo is to check it out...
git clone https://github.com/firebase/polymerfire.git
cd polymerfire
bower install
polymer serve
我从未尝试过从bower install'd文件夹中运行演示,但是上述方法将起作用.
I have never tried to run the demos from a bower install'd folder but, the above method will work.
这篇关于如何使用Polymer的“聚合物服务" polyserve服务器查看Polymerfire演示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!