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.

[labs/ssr] Deno Support

See original GitHub issue

Should this be an RFC?

  • This is not a substantial change

Which package is this a feature request for?

SSR (@lit-labs/ssr)

Description

I’m trying to use Lit.js SSR in the Astro framework with the Deno SSR engine, but Lit.js SSR currently depends on require()s of Node.js-only modules which do not work in Deno.

I know SSR is work-in-progress anyway, but it would be great to have a way to use Lit’s SSR on a Deno server.

Alternatives and Workarounds

I may have to try switching to Node.js instead of Deno, but Deno is preferred for my project due to it’s ability to deploy to Deno Deploy’s hosted service.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
kevinpschaafcommented, Sep 13, 2022

So it sounds like the problem isn’t actually that lit-ssr is depending on commonjs modules, it’s that we’re depending on built-in node modules?

We don’t do this much fwict, other than createRequire in parse5-utils, and transitively via node-fetch in the DOM shim (excluding the VM-based entry points, which wouldn’t be in scope for Deno usage anyway).

Once we upgrade to the new esm parse5 and can rely on node’s built-in fetch in the dom-shim, seems like this might fix itself?

4reactions
mhoadcommented, Sep 19, 2022

I would switch to Deno in a heartbeat if you ended up making those changes. Would simplify the DX by quite a bit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Demo Simulation Virtual Lab - Labster
In this demo virtual lab simulation, you will help Dr. One in identifying a fundamental biological molecule. During your mission, you will watch...
Read more >
Demo Simulation | Virtual Lab - YouTube
In this demo virtual lab simulation, you will help Dr. One identify a ... New at Labster : Introducing our newest features built...
Read more >
Labster - YouTube
Best of all, Labster support is designed to serve both teachers and students. This means teachers can rely on ... Labster Demo for...
Read more >
How To: Labster - YouTube
Here's a quick tutorial on how to use Labster on zSpace! Labster provides access to problem-based lab experiments in biology, chemistry, ...
Read more >
Labster Pricing 2022 : Demo, Reviews & Features
User may contact the support team for Labster pricing options. Labster Digital Learning Platforms Demo: Through its sci-fi realm, the Labster Virtual Lab ......
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