Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo doesn't work and fails with lots of 404 #1

Open
mvysny opened this issue Sep 29, 2018 · 3 comments
Open

Demo doesn't work and fails with lots of 404 #1

mvysny opened this issue Sep 29, 2018 · 3 comments

Comments

@mvysny
Copy link

mvysny commented Sep 29, 2018

Running polymer serve won't work and will fail with lots of 404s:

GET http://127.0.0.1:8081/webcomponentsjs/webcomponents-loader.js net::ERR_ABORTED 404 (Not Found)
127.0.0.1/:9 GET http://127.0.0.1:8081/iron-demo-helpers/demo-pages-shared-styles.html 404 (Not Found)
127.0.0.1/:10 GET http://127.0.0.1:8081/iron-demo-helpers/demo-snippet.html 404 (Not Found)
8127.0.0.1/:30 GET http://127.0.0.1:8081/polymer/polymer-element.html net::ERR_ABORTED 404 (Not Found)
calendar-month.html:51 Uncaught ReferenceError: Polymer is not defined
    at calendar-month.html:51
(anonymous) @ calendar-month.html:51
calendar-header.html:32 Uncaught ReferenceError: Polymer is not defined
    at calendar-header.html:32
(anonymous) @ calendar-header.html:32
2(index):30 GET http://127.0.0.1:8081/vaadin-text-field/vaadin-text-field.html net::ERR_ABORTED 404 (Not Found)

I tried to run bower install but even that didn't help. What should I do please?

@mvysny
Copy link
Author

mvysny commented Sep 29, 2018

Ah, browse the following link: http://127.0.0.1:8081/components/calendar-component/demo/ instead of http://localhost:8081 (dumb me)

@jmvanel
Copy link

jmvanel commented Dec 1, 2018

I did just that,
and did everything like on README,
but, when running polymer serve , the screen appears empty under "Basic calendar-component demo" title.
On Firefox and on Chromium.
I'm on Ubuntu latest.
Is there a special setting to do on the browsers ?

@jmvanel
Copy link

jmvanel commented Dec 2, 2018

OK, it works for me.

I did
bower install --save onuridrisoglu/calendar-component .
and now when running:
polymer serve

URL given on the Linux shell :
http://127.0.0.1:8081/components/calendar-component/`
redirects to
http://127.0.0.1:8081/components/calendar-component/demo/
which did not happen before.

In fact, I realize that the component is hosted on CDN, as we can see by pressing "export to JS-fiddle" in:
https://www.webcomponents.org/element/onuridrisoglu/calendar-component

I think it was with bower install that the directory hosted in the CND was created.
These clarifications should be in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants