Open luizalexandrew opened 6 years ago
Polymer elements need to be served from a special directory for development which is {host}/components/{your web component}/demo/
Try starting the server like: polymer serve --open this should open the browser to the correct location.
@QuiWorks thank you, I was having the same problem. To be honest, that's not very intuitive. I'd expect to just type "localhost:8081" and have the page served without problems
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
When starting a new element with polymer-cli imports are not found (404) in demo page, because they are pointing to the wrong folder
Versions & Environment
Steps to Reproduce
polymer init
Expected Results
...link rel="import" href="../bower_components/iron-demo-helpers/demo-pages-shared-styles.html"> ...link rel="import" href="../bower_components/iron-demo-helpers/demo-snippet.html"> ...link rel="import" href="../say-myname.html">
Actual Results
...link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html"> ...link rel="import" href="../../iron-demo-helpers/demo-snippet.html"> ...link rel="import" href="../say-myname.html">