I have been facing issues with the polymer-cli since I installed it. I am not able to serve components during development. I have to write my own Node.js server with remapping urls to work with components. But the documentation page clearly suggests that it had already done this work with its own tool.
What I did
- Create a component using polymer-cli's
polymer init
- Serve the component using
polymer serve
- The result is unexpected and caused the following errors:
Polymer version: 0.18.0-pre.15
Ubuntu 16.04.2 LTS x64
On running polymer serve
info: Files in this directory are available under the following URLs
applications: http://127.0.0.1:8081
reusable components: http://127.0.0.1:8081/components/test-element/
A) If I try to open localhost:8081
GET http://localhost:8081/webcomponentsjs/webcomponents-loader.js 404 (Not Found)
GET http://localhost:8081/iron-component-page/iron-component-page.html 404 (Not Found)
B) If I try to open `localhost:8081/components/test-element/demo/
The url redirects to http://localhost:8081/home/user-name/project-root/test-element/
The index page in the project root directory is served.
GET http://localhost:8081/home/user-name/project-root/webcomponentsjs/webcomponents-loader.js
GET http://localhost:8081/home/user-name/project-root/iron-component-page/iron-component-page.html 404 (Not Found)