polymer-3.x Questions
8
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry
at http://127.0.0.1:8000/components/@polymer/polymer/lib/elements/d...
Romeo asked 16/1, 2019 at 7:0
4
I am newbie to lit-element, and when use import to include the library, I am getting error as:
Uncaught TypeError: Failed to resolve module specifier "lit-element".
Relative references must st...
Italianize asked 8/6, 2019 at 14:51
6
Solved
I can't get the Font Awesome icons to work with LitElement, because CSS styles don't pierce the shadow boundaries of custom elements.
Is it possible to use Font Awesome or other icons with LitEle...
Chengteh asked 15/5, 2018 at 4:31
3
Polymer 3 uses import to load external Javascript. For example
import {GoogleCharts} from 'google-charts';
However, it seems for this to work, the external library should use exports.
I am tryi...
Goethe asked 3/8, 2018 at 10:49
1
Solved
I am using polymer 3 and lit-element(2.2.1). The version of mwc-textfield is 0.13.0. I have read the documentations related to this version.In this documentation, I have found that we can add mixin...
Fortdefrance asked 29/2, 2020 at 13:46
1
My requirement is how to detect the device level notification on/off in android device using javascript (don't use any kind of plug-in only you can use plug-in if this plugin support to PWA applica...
Agonize asked 9/11, 2019 at 5:36
2
My question is, Is it possible for the Users to acquire these changes without having to REINSTALL the PWA application?
I have a PWA application deployed in Production. The client already installed...
Continuous asked 22/7, 2019 at 8:29
3
How can I use Polymer 2 elements in Polymer 3 element? The following doesn't work since <link> element doesn't work inside shadow dom.
static get template() {
return '
<link rel="import...
Syncretism asked 4/1, 2018 at 22:18
1
Solved
I am currently learning how to user lit-element v2.0.0-rc.2 I have two components app.js and list-items.js. In app.js I am collecting data from local storage and storing it in this.todoList, Im the...
Regulation asked 17/1, 2019 at 22:22
3
Solved
Instead of return "HTML CONTENT"; I have a separate html file and I want to import it to my js file to return the content of it but import template from '/m-chip.html"; does not work.
element.js
...
Jeromyjerreed asked 24/9, 2017 at 17:58
0
Styles are loaded in template:
static get template() {
return html`
<style>
:host {
display: block;
border: double;
background-color: lightsteelblue;
}
</style>
<iron-aj...
Rhumb asked 4/12, 2018 at 16:59
2
Is there a way to import external css files that only affects the shadow DOM? I am working with sass and creating the css files automatically, so any tricks using javascript imports can't be done.
...
Allege asked 27/5, 2018 at 3:36
4
When Using paper-input, the import throws the following exception
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registr...
Mychal asked 15/5, 2018 at 16:59
1
I am trying to extract the HTML template from my Polymer component into a standalone HTML file. For Polymer 2 i found some examples, but they don't work for my Polymer 3 project. I tried something ...
Satori asked 5/9, 2018 at 9:19
1
Solved
I was installing dependencies for polymer app in stackblitz. It said 3 packages could not be found, but ther were present in npm website.
I tried cdn also. Even that did not work.
Screenshots:
...
Athlete asked 6/9, 2018 at 5:3
2
Solved
I am developing a web component using Polymer v3, and need to include some custom elements defined in legacy Polymer 2 components in the template HTML of my new component.
Since HTML imports are ...
Bellini asked 15/5, 2018 at 9:13
2
Solved
I'm looking for a way to minify the white space in template literals. Since regular js minification wouldn't remove white space on a template literal I was expecting that maybe polymer-cli had a wa...
Activism asked 1/4, 2018 at 21:49
1
© 2022 - 2024 — McMap. All rights reserved.