“未捕获的参考错误:未定义聚合物". IP变更引起的? [英] "Uncaught Reference Error: Polymer is not defined" caused by IP-change?
问题描述
所以我将近一个月都没有接触我的当前项目,此后,什么也没运行了,我得到了消息
so I didn't touch my current project for almost one month and after that, nothing is running anymore and I get the message
Uncaught Reference Error: Polymer is not defined
对于我的每个聚合物元素,并且一次:
for each of my Polymer-Elements and this one once:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/tools/loader/loader.js
Uncaught ReferenceError: PolymerLoader is not defined
我的主html文件中包含如下所示的聚合物:
<script src="bower_components/polymer/polymer.js"></script>
I have Polymer included in my main html-file like this:
<script src="bower_components/polymer/polymer.js"></script>
我已经删除并重新安装了我所有的bower_components,直接从GitHub下载Polymer,然后将PolymerLoader手动添加到所引用的目录(在不起作用后再次删除). 我正在使用Polymer 0.0.20131010版本(我知道它很旧,但是以前曾经工作过……)和Bower的最新版本. 我找不到所有的解释.
I already deleted and reinstalled all my bower_components, downloaded Polymer directly from GitHub and added the PolymerLoader manually to the referenced directory(deleted it again after it did not work). I am unsing Version 0.0.20131010 of Polymer (I know it's very old, but it used to work before...) and the newest version of Bower. I can't find an explanation for all this.
唯一发生变化的是计算机的IP地址,我在代码中的任何地方都没有引用它.
The only thing that has changed is the IP-address of the computer, which I am not refering to anywhere in my code.
我希望你能和我分享一些想法.
I hope you could share some of your thoughts on this with me.
推荐答案
正在为这些文件提供服务的HTTP服务器错误/配置错误.如果您为.js文件获取404,则不是聚合物错误.
Something is wrong / misconfigured with the HTTP server that's serving these files out. It's not a polymer error if you're getting a 404 for the .js files.
请提出一个新问题,并提供有关您用于提供HTTP服务的工具的信息.
Please ask a new question and include information about the tools that you're using to serve out HTTP.
这篇关于“未捕获的参考错误:未定义聚合物". IP变更引起的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!