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
[bug] Importing the WebComponents.js Custom Elements v1 polyfill from NPM breaks app? #7738
Comments
Opened reciprocal issue in webcomponents: webcomponents/webcomponentsjs#608 |
Why is my polyfill mentioned when the example imports Has this bug anything to do at all with my polyfill? |
@trusktr can you please change ASAP this title which blames for no reason my library? thank you |
can anyone please update this ticket, changing the title to start with? |
@WebReflection Hi Andrea, I fixed the title. My mistake. (You can unsubscribe from this one if you want) |
The error was fixed, and the polyfill has been moved to a new repo, so the following lines now work: import '@webcomponents/custom-elements/src/native-shim'
import '@webcomponents/custom-elements/src/custom-elements'
customElements.define('my-el', class MyEl extends HTMLElement {}) |
The only lines in the app are
which results in a familiar yet unhelpful error:
Reproduction:
git clone git@github.com:trusktr/meteor --branch issue-7738 --single-branch cd meteor ./run-dev.sh
Note, I'm getting the webcomponents.js package from GitHub (see package.json).
The text was updated successfully, but these errors were encountered: