polymer-cli

polymer-cli - getting “Can’t find variable: babelHelpers” when I set compile to true

廉价感情. 提交于 2020-01-04 13:10:34
问题 I use Polymer 2.0 and my build setting is: "builds": [ { "name": "bundled", "bundle": true, "js": { "compile": true}, "css": { "minify": true }, "html": { "minify": true } }] I get "Can’t find variable: babelHelpers" error after build. The Polymer CLI version that I use is 1.1.0. EDIT: I was using polymer-cli locally. After installing latest polymer-cli globally, now I get “Constructor requires ‘new’ operator” on safari and “Failed to construct ‘HTMLElement’: Please use the ‘new’ operator,

How to view the Polymerfire demo using Polymer’s `polymer serve` polyserve server?

喜欢而已 提交于 2020-01-03 16:25:43
问题 I want to view this demo of Polymerfire in my browser. I expect to see the demo run in my browser. Instead, I see a blank page and the following console error. console.log.error.message GET http://localhost:8080/ 404 (Not Found) Navigated to http://localhost:8080/ I used the following procedure: 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

How to view the Polymerfire demo using Polymer’s `polymer serve` polyserve server?

寵の児 提交于 2020-01-03 16:25:11
问题 I want to view this demo of Polymerfire in my browser. I expect to see the demo run in my browser. Instead, I see a blank page and the following console error. console.log.error.message GET http://localhost:8080/ 404 (Not Found) Navigated to http://localhost:8080/ I used the following procedure: 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

polyserve cannot serve the app

狂风中的少年 提交于 2019-12-12 20:25:36
问题 Node v8.11 NPM v5.6 Whenever I try to call polymer serve an error occurs telling that server failed to start and no available ports, which is wrong! most of the ports are available. $ polymer serve ERROR: Server failed to start: Error: No available ports. Ports tried: [8081,8000,8001,8003,8031,2000,2001,2020,2109,2222,2310,3000,3001,3030,3210,3333,4000,4001,4040,4321,4502,4503,4567,5000,5001,5050,5432,6000,6001,6060,6666,6543,7000,7070,7774,7777,8765,8777,8888,9000,9001,9080,9090,9876,9877

External Style file not loaded in polymer 3 application deployed to Spring mvc application

*爱你&永不变心* 提交于 2019-12-11 16:58:13
问题 Styles are loaded in template: static get template() { return html` <style> :host { display: block; border: double; background-color: lightsteelblue; } </style> <iron-ajax auto url="http://localhost:8000/api/clients" handle-as="json" last-response="{{_getClientsResponse}}"></iron-ajax> <h2>Hello [[prop1]]!</h2> <div>host</div> <link rel="stylesheet" href= "/node_modules/ag-grid-community/dist/styles/ag-grid.css"> <link rel="stylesheet" href= "/node_modules/ag-grid-community/dist/styles/ag

Polymer serve and service worker

送分小仙女□ 提交于 2019-12-06 03:11:05
问题 I am trying to get started on debugging my Polymer application. I have hand crafted it by copying what I think the PolymerCLI Polymer init does. I am not sure what is loading service worker. The default one for development just does a console.info() call saying its been disabled for development. When I use Polymer serve to serve my application on localhost: 8080, I get the console.info message, despite there being nowhere where I actually load the file service-worker.js . Because the

How to install Polymer 1.x templates with polymer-cli

大城市里の小女人 提交于 2019-11-29 12:46:51
When I run polymer init , it only shows V2 templates, but I want V1. How do I install Polymer 1.x application/element templates? There's a pending issue ( polymer-cli Issue #804 ) to restore the 1.x templates. In the meantime, you can manually install them with: npm i -g justinfagnani/generator-polymer-init-polymer-1-element \ justinfagnani/generator-polymer-init-polymer-1-application This will allow the 1.x templates to be listed when running polymer init . 来源: https://stackoverflow.com/questions/50042699/how-to-install-polymer-1-x-templates-with-polymer-cli

How to install Polymer 1.x templates with polymer-cli

不问归期 提交于 2019-11-28 06:13:46
问题 When I run polymer init , it only shows V2 templates, but I want V1. How do I install Polymer 1.x application/element templates? 回答1: There's a pending issue (polymer-cli Issue #804) to restore the 1.x templates. In the meantime, you can manually install them with: npm i -g justinfagnani/generator-polymer-init-polymer-1-element \ justinfagnani/generator-polymer-init-polymer-1-application This will allow the 1.x templates to be listed when running polymer init . 来源: https://stackoverflow.com