Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use paper button #197

Open
2 of 8 tasks
paalss opened this issue Mar 4, 2023 · 0 comments
Open
2 of 8 tasks

How to use paper button #197

paalss opened this issue Mar 4, 2023 · 0 comments

Comments

@paalss
Copy link

paalss commented Mar 4, 2023

Description

I want to start using webcomponents.org, but I fail to even render something so simple as the @polymer/paper-button component. I've followed the instructions in the docs and have no idea what I'm missing.

Expected outcome

I'm expecting the paper button element (which I've provided a raised-prop to) to look like the raised button variant in the demo:

paper-button-demo1

Actual outcome

The paper button isn't rendering. The custom element tag is ignored and my html-page just spits out its children text.

paper-button-error

Errors in console

  • In Firefox:

    Uncaught TypeError: The specifier “@polymer/iron-flex-layout/iron-flex-layout.js” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.
    
    The Components object is deprecated. It will soon be removed.
    
  • In Chrome:

    Uncaught TypeError: Failed to resolve module specifier "@polymer/iron-flex-layout/iron-flex-layout.js". Relative references must start with either "/", "./", or "../".
    

Live Demo

https://github.com/paalss/webcomponents-demo

Steps to reproduce

  1. Clone the webcomponents-demo repository
  2. Run npm i in it
  3. Open the index.html in a browser

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant