question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can i use it with just node.js?

See original GitHub issue

When i try use it as core of my app const { app } = require('hyperapp') console.log(app({})) i got error: ReferenceError: document is not defined.

Can i use it with nodejs?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jorgebucarancommented, Sep 3, 2017

Neither a state or a view is strictly necessary, so it should work (or fail for a different reason! 😄).

0reactions
jorgebucarancommented, Sep 3, 2017

Thanks @quko8 & @zaceno. I think the question has been answered.

In short: No, you can’t use the hyperapp module on the server without jsdom, etc. This might be possible in the future or be done via hyperapp/server though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why the Hell Would I Use Node.js? A Case-by-case Tutorial
Because Node. js is single-threaded, we use it primarily for non-blocking, event-driven servers. We can also use Node. js for traditional websites and...
Read more >
Can we use Node.js as a backend while developing an app?
However, most backend solutions require a database of some form or another. So yes, you can use it .
Read more >
What Is Node.js and Why You Should Use It
Node.js is a highly-scalable event-driven JavaScript environment. In this article, learn more about Node.js, its architecture, how to use it, and more.
Read more >
Why and When to Use Node.js in 2021 [Complete Guide]
While there are quite a number of use cases that Node.js fits perfectly, there are situations when you should look for other platforms,...
Read more >
Do I use Node.js to build a whole website? - Stack Overflow
Yes, you create the whole web server in node.js and use it to serve all your web pages. Typically one might use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found