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

cant use custom elements v1 #3

Closed
janat08 opened this issue Feb 6, 2018 · 3 comments
Closed

cant use custom elements v1 #3

janat08 opened this issue Feb 6, 2018 · 3 comments

Comments

@janat08
Copy link
Contributor

janat08 commented Feb 6, 2018

In this example you include polyfill for v1, yet it refuses to work in my app, and breaks in the example:
https://jsfiddle.net/fwLbqmsj/

@janat08
Copy link
Contributor Author

janat08 commented Feb 6, 2018

If I include the comprehensive polyfill it fails entirely: https://github.com/webcomponents/webcomponentsjs/blob/master/webcomponents-lite.js

@janat08
Copy link
Contributor Author

janat08 commented Feb 6, 2018

https://jsfiddle.net/fwLbqmsj/2/
Included the native bundle, does native es6 support exclude polyfills?

@codemeasandwich
Copy link
Owner

Your problem is in your resource links

  1. webcomponentsjs: was linked to the github page. Not the source.
    Use -> https://cdn.jsdelivr.net/npm/webcomponentsjs@latest/lite.min.js
  2. HyperHTML: you are missing the render lib
    Use -> https://unpkg.com/hyperhtml@latest/min.js
  3. hyper-element: the link is bad.
    Use -> https://cdn.jsdelivr.net/npm/hyper-element@latest/source/hyperElement.js

Hope this help.
Also star this project if you like :)

@janat08 janat08 closed this as completed Feb 7, 2018
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

2 participants