Closed didymu5 closed 5 years ago
The error is labeled when the render() is called.
I could console log
console.log(h, render)
and can see that there are functions returned, however
console.log preact
gives me undefined.
I think your babel pragma
needs to just be 'h'
, not 'preact.h'
This would also explain why it only throws when you try rendering something. The JSX pragma only gets invoked at that point, realizing it doesn't know what "preact.h" is.
OOH that did it!!! @lukeed I had kept the preact.h there while including preact via Githubissues.
Hello I could use some help. I'm using preact X -alpha 2 and getting the following error
index.js
package.json
.babelrc