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.

Deno is not defined

See original GitHub issue

I am running into a weird issue. I have a very simplistic island component: https://github.com/vorcigernix/freshweb3kit/blob/master/islands/Wallet.tsx but when I include it, it reports

Uncaught ReferenceError: Deno is not defined
    at island-wallet.js:13:3669
(anonymous) @ island-wallet.js:13

in the console and I guess it breaks SSR (because only server code is rendered). I tried to google this error message but still can’t find what could be the problem here. I also added global type definition for window.ethereum, could be relevant but it all works until I use the island component.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
vorcigernixcommented, Jul 3, 2022

The problem was indeed introduced by ethers library, my guess is that as they don’t support deno, an automated transition mechanism of esm.sh replaced node calls with deno in a wrong way and that was causing what @xstevenyung mentioned - calling Deno from client. It is fixed in my codebase (for future reference).

0reactions
eevecommented, Nov 17, 2022

image image

same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) ReferenceError: Deno is not defined ...
This is expected error if Deno is not added to the worker scope, it's the exact same error as for any other not...
Read more >
Frequently Asked Questions | Manual - Deno
FAQs about TypeScript in Deno. Can I use TypeScript not written for Deno? Maybe. That is the best answer, we are afraid. For...
Read more >
TypeError: Deno.run is not a function - Stack Overflow
A user calling Deno.run() on Deno Deploy and receiving an error such as PermissionDenied: running subprocesses is not permitted in this ...
Read more >
How to Render React SSR with Deno and Deno Deploy - Strapi
Deno introduces plenty of new features not available in Node, ... @ts-ignore Because VSCode occasionally complains that Deno is not defined.
Read more >
help getting node-geocoder working : r/Deno - Reddit
This is a sample of what I have in an island, but the final line causes ReferenceError: Deno is not defined to be...
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