Questions tagged [polymer-3.x]
294 questions
3
votes
1 answer
How to implement routing in polymer 3 using app-route
I was stuck with implementing routing in polymer 3. I followed the basic guide provided on app-route documentation. But on loading the web page., I don't see any component getting loaded. I checked in shadow DOM and don't see any DOM getting…

shabarinath
- 548
- 3
- 18
3
votes
0 answers
Paper element import not working in python
Paper elements are not able to import in python-django environment, and
an import error arises
Uncaught TypeError: Failed to resolve module specifier "@polymer/polymer/polymer-legacy.js". Relative references must start with either "/", "./", or…

Sanjeev S
- 1,113
- 2
- 13
- 33
3
votes
2 answers
How to style paper-card (Polymer 3) included inside a LitElement custom component using a mixin
I created a custom element using LitElement in Polymer 3. I included a paper-card element inside that custom element. I would like to use the style mixins already defined to style that paper-card but I can't. For example, paper-card define this…

Igor Gomez
- 581
- 1
- 4
- 4
3
votes
2 answers
Polymer build with custom babel plugins?
We'd like to be able to add custom functionality to polymer build and polymer serve by configuring custom babel plugins.
For example, since polymer-cli uses babel internally, we would add a babel.config.js file to our workspace/project-root,…

Scott Smith
- 3,900
- 2
- 31
- 63
3
votes
2 answers
How to publish Polymer 3.x custom element?
I am learning polymer3.x. I made a dummy polymer element. Now i wanted to know how to publish online and use it in some other framework(eg: angular app).
I completed the requirements as mentioned in https://www.webcomponents.org,
included License…

Raj
- 1,100
- 3
- 20
- 33
3
votes
1 answer
Cannot access changed array "value" in route function in PolymerJS 3.0? (Using iron-ajax and app-route elements)
I am new to Polymer and currently learning Polymer 3.0. I am trying to make an app which is working as follows:
fetches playlists data from public url (using iron-ajax element)
handle data in handleResponse() func, and assign the value to…

Raj
- 1,100
- 3
- 20
- 33
3
votes
1 answer
Build polymer app for non root path
I think this is not a duplicate of Serving Polymer App to a /path not at root, because it is about newer versions of Polymer-cli version 1.8 and Polymer 3
I have created a very simple component that works with "polymer serve" and with "polymer…

anneb
- 5,510
- 2
- 26
- 26
3
votes
1 answer
Polymer 3 - Google Maps
I would like to know how to include Google Map in Polymer 3. I have just upgraded to Polymer 3 from Polymer 2. This is my sample that is not working base of the starter-kit
import { PolymerElement, html } from…

Nolin P
- 111
- 4
3
votes
1 answer
Polymer 3.0.5 - "DOMException: Failed to execute 'define' on 'CustomElementRegistry'"
I don't think this is a duplicate issue. I only have @polymer/polymer installed as a dependency and imported into my vendor bundle (no @polymer/paper-input). I'm using v3.0.5 and I don't even see iron-meta in the dependency tree (via npm list) and…

Jbird
- 2,839
- 1
- 21
- 28
3
votes
1 answer
Run polymer in visual studio 2015
Hi I want to execute polymer component(polymer3.x) in visual studio,I am able to run polymer cli and polymer serve and I can see outputs.but when I try to execute my code in visual studio project I get `error
Failed to resolve module specifier
…

Bilgehan
- 1,135
- 1
- 14
- 41
3
votes
1 answer
polymer 3.0 data binding
I'm having trouble with understanding how data binding in polymer works. I've checked the docs and some previous questions and still:
I have a host and a child elements. The child is a signup/login page which sends an ajax request to api and either…

Artur Takoev
- 127
- 2
- 11
3
votes
1 answer
Polymer 3: How to implement two way data binding for radio input
I'm trying to understand/implement two way attribute binding in a Polymer 3 web component. I've got the following code:
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
class CustomInputComponent extends PolymerElement {
…

Robert
- 1,710
- 2
- 18
- 35
3
votes
1 answer
relative path in chrome polymer 3 IIS
I updated my project from Polymer-2.x to Polymer-3.x and now, when I just open my index,html in my browser I get 'Uncaught TypeError: Failed to resolve module specifier "@polymer/polymer/polymer-element.js". Relative references must start with…

Bi Team
- 33
- 3
3
votes
2 answers
LitElement lacks compatibility to Polymer elements
Polymer 3 and LitElement looks very attractive for future component-based development and I'm looking forward to using them in my projects.
But one of the stumbling blocks here is that the old Polymer codebase with lots of ready-to-use elements…

Nick
- 65
- 5
3
votes
1 answer
polymer-webpack-loader: how to import & transpile Polymer .html template
I'm new to both Polymer and Webpack and trying to work out how to get the polymer-webpack-loader transpiling correctly. According to the new Polymer 3.x way of importing HTML into JS (Polymer 2.x was the other way round), I've created a separate…

Paul M Sorauer
- 667
- 8
- 10