Closed giotramu closed 6 years ago
As you can see in this CodePen everything is fine.
There are two differences:
import hyperHTML from 'hyperhtml';
because hyperhtml
is already part of HyperHTMLElementIt looks indeed like you are transpiling code but Babel < 7 is not compatible with native extend.
You might need to add an extra step to your transpilation which is this plugin which is included in Babel 7 https://github.com/WebReflection/babel-plugin-transform-builtin-classes
I get "Super expression must either be null or a function, not object" error when I run index.js:
My index.js code:
My index.html code:
My package.json file: http://jsoneditoronline.org/?id=16781014c5a73885d395019ba5fcc317
What have I done wrong?