-
Notifications
You must be signed in to change notification settings - Fork 109
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
Doesn't seem to work with Deno #93
Comments
Hyperscript does not check for Line 4 in 4c0d558
|
This is an older assumption that The next line is where the assumption goes wrong: Lines 4 to 5 in 4c0d558
(If environment is unknown, each feature should be tested before being used.) All that being said, Hyperscript predates Deno by quite a bit, back in a time where a JavaScript "client" meant "browser" and "server" meant "Node.js". @kisik21 Deno doesn't have any DOM support yet, so it would need to provide that feature before something like hyperscript could support it as an environment. |
In Node there's I may try to make a PR in the near future. Something like extending the L5 with |
@kisik21 It's a little more complicated than that. Neither If you don't want to go that route, you could look at other community modules for DOM in Deno (e.g. https://deno.land/x/deno_dom). |
Deno is a new JS server environment that was created from ground up in attempt to fix Node.js's drawbacks. It looks like this library somehow confused it with a browser (uses
process
to distinguish Node and browser probably?) Deno doesn't haveprocess
, it has its ownDeno
object in the global namespace, and it uses ES6 modules and not NPM packages.Hyperscript is small, compact and relatively self-contained, just like Deno. I think they would play together rather nicely.
The text was updated successfully, but these errors were encountered: